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