#include <iostream>
using namespace std;
int main(){
long int a, b, n;
cin >> n;
while (n--){
cin >> a >> b;
if (a<b)
cout <<"<"<<endl;
else if (a>b)
cout <<">"<<endl;
else
cout << "=" <<endl;
}