int solve(int a, int b){ char sa[100]={'\0'}, sb[100]={'\0'}; sprintf(sa, "%d", a); sprintf(sb, "%d", b); int na=strlen(sa), nb=strlen(sb); if(na==nb){ return strcmp(sa, sb); }else{ return solve(na, nb); } } int main() { char c1='0'+12, c2='0'+14; int n; scanf("%d", &n); while(n){ int a, b; scanf("%d %d", &a, &b); int cmp=solve(a, b); if(cmp==0){ printf("=\n"); continue; } char s[100]={'\0'}; sprintf(s, "%d", cmp); if(s[0]=='-') printf("%c\n", c1); else printf("%c\n", c2); n--; } return 0; }