N=int(raw_input()) A=map(int,raw_input().split()) leftmost=60 ind=0 while leftmost>=0: A.sort() A.reverse() #for a in A: # print format(a,'b') #print while leftmost>=0 and (A[ind]&(1<