import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
int n;
Scanner scn = new Scanner(System.in);
n = scn.nextInt();
int x;
int i,j;
for(x=0;x<n;x++) {
i = scn.nextInt();
j = scn.nextInt();
if(i > j)
System.out.println(">");
else if(i < j)
System.out.println("<");
else
System.out.println("=");
}
}
}