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