#!/bin/python import sys import operator n = int(raw_input().strip()) types = map(int, raw_input().strip().split(' ')) # your code goes here dict ={1:0,2:0,3:0,4:0,5:0} for x in types: dict[x] = dict[x]+1 max_type = max(dict.iteritems(), key=operator.itemgetter(1))[0] for i in xrange(4): if dict[i+1]==dict[max_type] and (i+1)