#!/bin/python3 import sys n = int(input().strip()) types = list(map(int, input().strip().split(' '))) # your code goes here array = {1:0,2:0,3:0,4:0,5:0} highest = 0 for i in types: array[i] +=1 for k in array: if array[k] > highest: highest = array[k] bird = k print(bird)