import sys sys.setrecursionlimit(10**7) X,Y = map(int,input().split()) N = 1000 mem = [[None for i in range(N)] for j in range(N)] 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 < N and y < N and mem[x][y] is not None: 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) if x < N and y < N: mem[x][y] = mem[y][x] = ret return ret print('Yes' if dfs(X,Y) else 'No')