#!/bin/python3 import sys n = int(input().strip()) types = list(map(int, input().strip().split(' '))) # your code goes here one=0 two=0 three=0 four=0 five=0 for i in types: if i == 1: one +=1 elif i == 2: two +=1 elif i == 3: three +=1 elif i == 4: four +=1 else: five+=1 #Find max result results = [one, two, three, four, five] maxscore = max(results) if one == maxscore: print(1) elif two == maxscore: print(2) elif three == maxscore: print(3) elif four == maxscore: print(4) else: print(5)