#include using namespace std; typedef long long ll; template bool chmin(T1 &a,T2 b){if(a<=b)return 0; a=b; return 1;} template bool chmax(T1 &a,T2 b){if(a>=b)return 0; a=b; return 1;} ll dx[4]={0,1,-1,0}; ll dy[4]={1,0,0,-1}; signed main(){ ios::sync_with_stdio(false); cin.tie(0); cout << fixed << setprecision(20); int q; cin>>q; while(q--){ ll a,b; cin>>a>>b; vector ans; if(a%2){ ans.push_back(1); a++; } ll now = 1; ll dif = b - a; while(dif>=1 && now<62){ if(dif>=(1LL<<(now-1)) && a%(1LL<