#!/bin/python3 import sys k=0 count=[] n = int(input().strip()) types = list(map(int, input().strip().split(' '))) # your code goes here for k in range(1,6): n=types.count(k) count.append(n) print(count.index(max(count))+1) #print(count)