times = int(input()) for i in range(0,times): a,b = input().split() if a > b: print(">") if a < b: print("<") if a == b: print("=")