from functools import lru_cache import sys sys.setrecursionlimit(100000) @lru_cache def is_operated(a: int, b: int) -> bool: if a == 0 or b == 0: return True if a % 2 == 1 and b % 2 == 1: return False if a % 2 == 1: return is_operated(a-1, b//2) if b % 2 == 1: return is_operated(a//2, b-1) return is_operated(a-1, b//2) or is_operated(a//2, b-1) def main(): A, B = map(int, input().split()) if is_operated(A, B): print("Yes") else: print("No") if __name__ == "__main__": main()