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