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