for t in[0]*(int(input())):N=int(input());print("YNeos"[N>17or N^N&-N>0::2])