#include long long ans[125]; int main(){ int T; scanf("%d",&T); while(T--){ long long a,b; scanf("%lld%lld",&a,&b); long long diff = b-a; //can use for now long long base = 1; int size = 0; while(base<=diff){ long long nBase = base*2; if(a%nBase){ diff -= base; a += base; ans[++size] = base; } base *= 2; } int len = 0; while(diff!=0){ if(diff%2) ans[++size] = 1ll<