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