import os,io input=io.BytesIO(os.read(0,os.fstat(0).st_size)).readline t=int(input()) for _ in range(t): a,b=map(int,input().split()) ans=[] for i in range(70): if a+(1<