#include using namespace std; using Int = long long; const char newl = '\n'; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a void drop(const T &x){cout< vector read(size_t n){ vector ts(n); for(size_t i=0;i>ts[i]; return ts; } //INSERT ABOVE HERE signed solve(){ Int a,b; cin>>a>>b; vector ans; Int k; for(k=1;a+k<=b;k<<=1){ if(a&k) ans.emplace_back(k),a+=k; } for(;k;k>>=1){ if(b&k&~a) ans.emplace_back(k),a+=k; } assert(a==b); cout<>T; while(T--) solve(); return 0; }