import sys sys.setrecursionlimit(10**7) X,Y = map(int,input().split()) mem = {} def dfs(x,y): if x == y == 0: return True if x < 0 or y < 0: return False if x%2 and y%2: return False if (x,y) in mem: return mem[(x,y)] if x%2: ret = dfs(x-1,y//2) elif y%2: ret = dfs(x//2,y-1) else: ret = dfs(x-1,y//2) or dfs(x//2,y-1) mem[(x,y)] = ret return ret print('Yes' if dfs(X,Y) else 'No')