A,B = map(int,input().split()) ans = "Yes" for i in range(40): a = (A>>i)&1 b = (B>>i)&1 if a == 1 and b == 0: ans = "No" print(ans)