n = int(input()) for i in range(n): a, b = map(int, input().split()) if a==b: print("=") else: l = [a,b] l.sort() if l[0] == a: print(chr(60)) else: print(chr(62))