#include using namespace std; int main(){ int n,q; cin>>n>>q; long s,t,msb; while(q--){ cin>>s>>t; for(int i=n;i>=0;i--){ if((s^t)>>i){ msb=1LL<