#ABC301A. [ABC301A] Overall Winner

[ABC301A] Overall Winner

Score : 100100 points

Problem Statement

Takahashi and Aoki played NN games. You are given a string SS of length NN, representing the results of these games. Takahashi won the ii-th game if the ii-th character of SS is T, and Aoki won that game if it is A.

The overall winner between Takahashi and Aoki is the one who won more games than the other. If they had the same number of wins, the overall winner is the one who reached that number of wins first. Find the overall winner: Takahashi or Aoki.

Constraints

  • 1N1001\leq N \leq 100
  • NN is an integer.
  • SS is a string of length NN consisting of T and A.

Input

The input is given from Standard Input in the following format:

NN

SS

Output

If the overall winner is Takahashi, print T; if it is Aoki, print A.

5
TTAAT
T

Takahashi won three games, and Aoki won two. Thus, the overall winner is Takahashi, who won more games.

6
ATTATA
T

Both Takahashi and Aoki won three games. Takahashi reached three wins in the fifth game, and Aoki in the sixth game. Thus, the overall winner is Takahashi, who reached three wins first.

1
A
A