import sys sys.setrecursionlimit(100000000) input = sys.stdin.readline MOD = 10 ** 9 + 7 INF = 10 ** 15 def main(): A,B = map(int,input().split()) stack = [(0,0)] flag = False while stack: p,q = stack.pop() if p == A and q == B: flag = True break if p > A or q > B: continue stack.append((2*p,q + 1)) stack.append((p + 1,2*q)) print('Yes' if flag else 'No') if __name__ == '__main__': main()