N = int(input()) for __ in range(N): a, b = map(int, input().split()) if a - b is 0: print("=") elif a - b is abs(a - b): print(">") else: print("<")