from functools import lru_cache import sys input = sys.stdin.buffer.readline sys.setrecursionlimit(10 ** 7) @lru_cache(maxsize=None) def dfs(a, b): if a == 0 and b == 0: return True if a % 2 == 0: if dfs(a // 2, b - 1): return True if b % 2 == 0: if dfs(a - 1, b // 2): return True return False A, B = map(int, input().split()) if dfs(A, B): print("Yes") else: print("No")