import java.util.*;
import java.math.BigInteger;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int i = 0;
        while(true) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int judge = judge(a,b);
            if(judge == 0) {
                System.out.println("=");
            } else if(judge == 1){
                System.out.println((char)(62));
            } else {
                System.out.println((char)(60));
            }
            i++;
            if(i == n) break;
        }
    }
    static int judge(int a, int b) {
        BigInteger as = new BigInteger(String.valueOf(a));
        BigInteger bs = new BigInteger(String.valueOf(b));
        return as.compareTo(bs);
    }
}