p = chr(62) q = chr(60) N = int(input()) for i in range(N): a,b = map(int,input().split()) if a == b: print('=') continue if a - b == abs(a - b): print(p) else: print(q)