#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef vector VI; typedef vector VVI; typedef vector VL; typedef vector VVL; typedef long long LL; #define all(a) (a).begin(), (a).end() #define Yes(n) cout << ((n) ? "Yes" : "No" ) << endl #define YES(n) cout << ((n) ? "YES" : "NO" ) << endl #define ALL(a) (a).begin(),(a).end() #define pb push_back int main() { int a,b;cin>>a>>b; int ans=1; rep(i,10){ int p=a%2,q=b%2; if(p==1&&q==0){ans=0;} if(p==1&&q==1){ans*=2;} a/=2;b/=2; } cout<