#!/usr/bin/python3 def op1(x,y): if x==0 and y==0: print("Yes") exit() if x%2==0 and y>0: x=x//2 y=y-1 op2(x,y) op1(x,y) def op2(x,y): if x==0 and y==0: print("Yes") exit() if x>0 and y%2==0: x=x-1 y=y//2 op1(x,y) op2(x,y) X,Y=map(int,input().split()) op1(X,Y) op2(X,Y) print("No")