#include "bits/stdc++.h" using namespace std; typedef long long ll; void solve(){ int N; scanf("%d",&N); for(int i = 0; i != N;i++){ int a,b; scanf("%d%d",&a,&b); if(a==b){ printf("=\n"); continue; } string sa = to_string(a), sb = to_string(b); int digit = 10; while(sa.length()!=digit){ sa.insert(sa.begin(), '0'); } while(sb.length()!=digit){ sb.insert(sb.begin(), '0'); } for(int j = 0; j !=digit;j++){ if(sa[j] == '0' && sb[j] == '0'){ continue; } if(sa[j] != '0' && sb[j] == '0'){ printf("%c\n",(char)(62)); break; } if(sa[j] == '0' && sb[j] != '0'){ printf("%c\n",(char)(60)); break; } if(sa[j] !='0' && sb[j] != '0'){ int ta = sa[j] - '0'; int tb = sb[j] - '0'; int tta = ta; while(tta != tb && (tta != digit)){ tta++; } if(tta == digit){ printf("%c\n",(char)(62)); }else{ printf("%c\n",(char)(60)); } break; } } } } int main(void) { cin.tie(0); ios::sync_with_stdio(false); solve(); return 0; }