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