#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(ll i=0;i> N >> M; ll n,m,ans=0; for(i=0;i<30;i++){ if(i%2==0){ n=N&(1LL<