#include "iostream" #include "stdio.h" using namespace std; int compare(int a, int b){ if(a == b){ return 0; } for(int i = 0; i != 30; i++){ if(a == b){ return -1; } a++; } return 1; } int main(){ int N; scanf("%d", &N); for(int i = 0; i != N; i++){ int a, b; scanf("%d %d\n", &a, &b); if(compare(a / 10000, b / 10000) == 1){ printf("%c\n", char(62)); }else if(compare(a / 10000, b / 10000) == -1){ printf("%c\n", char(60)); }else if(compare(a % 10000, b % 10000) == 1){ printf("%c\n", char(62)); }else if(compare(a % 10000, b % 10000) == -1){ printf("%c\n", char(60)); }else{ printf("%c\n", char(61)); } } }