import sys input = sys.stdin.readline T=int(input()) for tests in range(T): N=int(input()) ANS1=0 ANS2=0 x=0 for i in range(64,-1,-1): if N & (1<