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