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