import sys sys.setrecursionlimit(10**7) from functools import lru_cache @lru_cache(maxsize=None) def f(a, b): if a == 0 or b == 0: print("Yes") exit() v = 0 if a > b: v |= f(b, a) if a % 2 == 0: v |= f(a//2, b - 1) if b % 2 == 0: v |= f(a - 1, b//2) return v A, B = map(int, input().split()) f(A, B) print("No")