N=int(input()) M=[] for _ in range(N):M.append(int(input())) MAX=1<