import sys sys.setrecursionlimit(200050) def f(a, b): if a == 0 and b == 0: print("Yes") exit() if a % 2 == 0: f(a // 2, b - 1) if b % 2 == 0: f(a - 1, b // 2) A, B = map(int, input().split()) f(A, B) print("No")