#!/bin/python3 import sys n = int(input().strip()) types = list(map(int, input().strip().split(' '))) # your code goes here dic = {} for l in types: if 'Type ' + str(l) not in dic: dic['Type ' + str(l)] = 1 else: dic['Type ' + str(l)] += 1 ans = max(dic, key=lambda i: dic[i]) print(ans[-1])