a=int(input())
b=list(str(input()))
A=0
B=0
for x in range(a):
if b[x]=='A':
A+=1
else:
B+=1
if A>B:
print('A')
elif A<B:
print('B')
else:
print('Tie')
'알고리즘 > 백준' 카테고리의 다른 글
백준-10156번(과자)-python3 (0) | 2023.11.30 |
---|---|
백준-10103번(주사위 게임)-python3 (0) | 2023.11.30 |
백준-10039번(평균점수)-python3 (0) | 2023.11.30 |
백준-10026번(적록색약)-python3 (0) | 2023.11.30 |
백준-9610번(사분면)-python3 (0) | 2023.11.30 |