A, B = map(int, input().split()) Q = {(A, B)} while Q: a, b = Q.pop() if a == 0 and b == 0: print("Yes") exit() if a % 2 == 0: Q.add((a // 2, b - 1)) if b % 2 == 0: Q.add((a - 1, b // 2)) print("No")