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