n=int(input()) a=[int(input()) for _ in range(n)] a.sort() now=a[0] cnt=1 for i in range(1,n): if now+1