import sys sys.setrecursionlimit(10**7) from functools import lru_cache @lru_cache(maxsize=None) def f(a, b): if a == 0 and b == 0: return 1 if a == 0 and b != 1: return 0 if b == 0 and a != 1: return 0 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()) print("Yes") if f(A, B) else print("No")