n = int(input()) a = list(map(int, input().split())) a.sort() cnt = 0 for i in range(n-1): if n==1: cnt=1 break else: if a[i-1]