n = int(input()) for i in range(n): a, b = map(int, input().split()) if a == b: print("=") elif list(str(bin(a - b)))[0] == "-": print("<") else: print(">")