n=int(input()) L=[int(input()) for _ in range(1<>bit&1==0: if L[i]>>bit&1: exit(print("No")) print("Yes")