F;f(long x,long y){x&&y?x%2||f(x/2,y-1),y%2||f(x-1,y/2):F++;}main(){long x,y;scanf("%ld%ld",&x,&y);f(x,y);puts(F?"Yes":"No");}