import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines from functools import lru_cache A, B = map(int, read().split()) @lru_cache(None) def solve(A, B): if A < 0 or B < 0: return False if A == 0 or B == 0: return True if A % 2 == 0 and solve(A // 2, B - 1): return True if B % 2 == 0 and solve(A - 1, B // 2): return True return False answer = 'Yes' if solve(A, B) else 'No' print(answer)