t=int(input(''))
for i in range(t):
	num1,num2 = input('').split()	
	num1=int(num1)
	num2=int(num2)	
	if num1 > num2 :
		print('>')
	elif num1<num2:
		print('<')
	else:
		print('=') 

t=int(input(''))
for i in range(t):
	num1,num2 = input('').split()	
	num1=int(num1)
	num2=int(num2)	
	if num1 > num2 :
		print('>')
	elif num1<num2:
		print('<')
	else:
		print('=') 
