#include #include int main(void){ long long int a,b; long long int stack[100000][2]; int stacktop=1; scanf("%lld %lld",&a,&b); stack[0][0]=a; stack[0][1]=b; while(stacktop>0){ stacktop--; a=stack[stacktop][0]; b=stack[stacktop][1]; if(a==0&&b==0){ printf("Yes\n"); return 0; } if(a%2==0&&b>0){ stack[stacktop][0]=a/2; stack[stacktop][1]=b-1; stacktop++; } if(b%2==0&&a>0){ stack[stacktop][0]=b/2; stack[stacktop][1]=a-1; stacktop++; } } printf("No\n"); return 0; }