#include"bits/stdc++.h" using namespace std; typedef long long int ll; typedef long double ld; int main(){ int Q;scanf("%d",&Q); while(Q--){ int A,B;scanf("%d %d",&A,&B); if(A==B){printf("=\n");continue;} char a='0'+12,b='0'+14; string S=to_string(A-B); if(S[0]!='-')printf("%c\n",b); else printf("%c\n",a); } return 0; }