시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 256 MB 1663 1122 1059 68.856%

문제

A와 B가 한 오디션 프로의 결승전에 진출했다. 결승전의 승자는 심사위원의 투표로 결정된다.

심사위원의 투표 결과가 주어졌을 때, 어떤 사람이 우승하는지 구하는 프로그램을 작성하시오.

입력

입력은 총 두 줄로 이루어져 있다. 첫째 줄에는 심사위원의 수 V (1 ≤  V ≤  15)가 주어지고, 둘째 줄에는 각 심사위원이 누구에게 투표했는지가 주어진다. A와 B는 각각 그 참가자를 나타낸다.

출력

  • A가 받은 표가 B보다 많은 경우에는 A
  • B가 받은 표가 A보다 많은 경우에는 B
  • 같은 경우에는 Tie

를 출력한다.

예제 입력 1

6
ABBABB

예제 출력 1

B
W3sicHJvYmxlbV9pZCI6IjEwMTAyIiwicHJvYmxlbV9sYW5nIjoiMCIsInRpdGxlIjoiXHVhYzFjXHVkNDVjIiwiZGVzY3JpcHRpb24iOiI8cD5BXHVjNjQwIEJcdWFjMDAgXHVkNTVjIFx1YzYyNFx1YjUxNFx1YzE1OCBcdWQ1MDRcdWI4NWNcdWM3NTggXHVhY2IwXHVjMmI5XHVjODA0XHVjNWQwIFx1YzljNFx1Y2Q5Y1x1ZDU4OFx1YjJlNC4gXHVhY2IwXHVjMmI5XHVjODA0XHVjNzU4IFx1YzJiOVx1Yzc5MFx1YjI5NCBcdWMyZWNcdWMwYWNcdWM3MDRcdWM2ZDBcdWM3NTggXHVkMjJjXHVkNDVjXHViODVjIFx1YWNiMFx1YzgxNVx1YjQxY1x1YjJlNC48XC9wPlxyXG5cclxuPHA+XHVjMmVjXHVjMGFjXHVjNzA0XHVjNmQwXHVjNzU4IFx1ZDIyY1x1ZDQ1YyBcdWFjYjBcdWFjZmNcdWFjMDAgXHVjOGZjXHVjNWI0XHVjODRjXHVjNzQ0IFx1YjU0YywgXHVjNWI0XHViNWE0IFx1YzBhY1x1Yjc4Y1x1Yzc3NCBcdWM2YjBcdWMyYjlcdWQ1NThcdWIy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