n=int(input()) for i in range(n): a,b=list(map(int,input().split())) if a==b: print("=") else: c=a-b; while c!=1 and c!=-1: c=int(c/2); if c==1: print(chr(62)) else: print(chr(60))