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