n=int(input()) i=list(map(int,input().split())) j=sorted(i) if i[-1]