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