/*

Solution to problem set 11172
from http://online-judge.uva.es/
To submit this problem, select:
- "Browse Problems", then "Contest Volumes", 
  then "Problem Set CXI".
  
*/

#include <iostream>

using namespace std;
int main() {
   int n, a, b;
   cin >> n;
   for (int i = 0; i < n; ++i) {
     cin >> a >> b;
     if (a < b) cout << '<' << endl;
     else if (a > b) cout << '>' << endl;
     else cout << '=' << endl;
   }
   return 0;
} 
