n = int(input()) s = list(map(int,input().split())) d = {} for c in s: d[c] = d.get(c,0) + 1 if d[c] > (len(s) / 2): print(c) break else: print("no")