n = int(input()) s = input().split() INF = 1<<30 N = 1<>i&1==0: continue nmask = mask^(1<