#!/bin/python3 import sys n = int(input().strip()) types = list(map(int, input().strip().split(' '))) # your code goes here Arr = [0,0,0,0,0] for i in types : Arr[i-1] +=1 maxid = 0 max = Arr[0] for j in range(1,5): if(Arr[j]>max): max=Arr[j] maxid=j print(maxid+1)