def main(): A, B = map(int, input().split()) if dfs(A, B): print('Yes') else: print('No') def dfs(a, b): if a == b == 0: return True elif a % 2 and a % 2: return False if not a % 2: a //= 2 b -= 1 dfs(a, b) if not b % 2: a -= 1 b //= 2 dfs(a, b) return True main()