#include int main(void){ int n,a,b,d; char c; scanf("%d",&n); for(;n!=0;n--){ scanf("%d %d",&a,&b); if(a==b) c=61; else{ d=a-b; while(d!=1&&d!=-1)d/=2; if(d==1) c=62; else c=60; } printf("%c\n",c); } return 0; }