T = int(input()) for i in range(T): A, B = map(int, input().split()) a, b = A, B res = [] p = 0 while a!=b: if a&1: res.append(1<