#!/bin/python import sys n = int(raw_input().strip()) types = map(int, raw_input().strip().split(' ')) class Bird: def __init__(self,type): self.type = type self.occurrences = 0 occurrences = 0 numBirdTypes = 5 maxBird = Bird(0) birds = [] # your code goes here for i in xrange(1,numBirdTypes): birds.append(Bird(str(i))) #for i in types: #print i #birds[i-1].occurrences += 1 for i in birds: if i.occurrences > maxBird.occurrences: maxBird = i print str(i.type)