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