n=int(input()) while n!=0: n-=1 a,b=map(int,input().split()) if a==b: print("=") else: s=a-b if s==abs(s): print(chr(62)) else: print(chr(60))