n=int(input()) for i in range(n): a,b=map(int,input().split()) if a==b: print("=") elif abs(a-b)==a-b: print(chr(62)) else: print(chr(60))