20 lines
No EOL
214 B
Python
20 lines
No EOL
214 B
Python
a = 0
|
|
b = 0
|
|
|
|
n = input("")
|
|
|
|
votes = input("")
|
|
|
|
for vote in votes:
|
|
if vote == "A":
|
|
a += 1
|
|
elif vote == "B":
|
|
b += 1
|
|
|
|
|
|
if a > b:
|
|
print("A")
|
|
elif a < b:
|
|
print("B")
|
|
else:
|
|
print("Tie") |