A,B=map(int,input().split()) for i in range(60): if A & (1<<i) != 0 and B & (1<<i) == 0: print("No") break else: print("Yes")