설명
A vote is held after singer A and singer B compete in the final round
of a singing competition. Your job is to count the votes and determine the outcome.
제약
입력 형식
The input will be two lines. The first line will contain \(V~(1 \leq V \leq 15)\), the total number of votes. The second line of input
will be a sequence of \(V\) characters,
each of which will be \(A\) or \(B\), representing the votes for a
particular singer.
출력 형식
The output will be one of three possibilities:
-
A, if there are more \(A\) votes than \(B\) votes; -
B, if there are more \(B\) votes than \(A\) votes; -
Tie, if there are an equal number of
\(A\) votes and \(B\) votes.
예제 1
입력
6
ABBABB출력
B예제 2
입력
6
ABBABA출력
Tie문제 정보