# coding: utf-8 # Your code here! n = int(input()) for i in range(0,n): a,b=map(int,input().split()) b -= a if (b==0) : print("=") elif (abs(b)==b) : print(chr(60)) else : print(chr(62))