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