#coding: utf-8 ##yuki_182 import sys n=int(raw_input()) s=[] s=raw_input().split() if len(s)!=n: print "error" sys.exit() s.sort() cnt=0 if s[0]