n = int(input()) a = list(map(int, input().split())) def dfs(a, i): if i < 0: return 0 x = [] y = [] for j in a: if j&(1<