import java.util.Scanner;
public class bb{
public static void main(String[]argv){
Scanner sc=new Scanner(System.in);
int a,b;
int time=sc.nextInt();
for(int i=0;i<time;i++){
a=sc.nextInt();
b=sc.nextInt();
if(a>b)
System.out.println(">");
else if(a<b)
System.out.println("<");
else if(a==b)
System.out.println("=");
}
}
}