#include"iostream" #include"algorithm" using namespace std; #define int long long signed main() { int n; scanf("%d", &n); for (int i = 0; i != n; i++) { int a, b; scanf("%d%d", &a,&b); int m = max(a, b); if (a == m&&b == m) { printf("%c\n", '='); } else if (m == a) { printf("%c\n", ('9' + 3)); } else printf("%c\n", ('9' + 5)); } }