n = int(input()) for _ in range(n): a,b = map(int,input().split()) d = a-b if d==0: print("=") elif d==abs(d): print(chr(62)) else: print(chr(60))