memo = dict() def f(a, b): if (a, b) in memo: return memo[(a, b)] if a == 0 and b == 0: return True if a % 2 == 0 and f(a // 2, b - 1): memo[(a, b)] = True return True if b % 2 == 0 and f(a - 1, b // 2): memo[(a, b)] = True return True memo[(a, b)] = False return False a, b = map(int, input().split()) if f(a, b): print("Yes") else: print("No")