import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner( System.in ); int N = sc.nextInt(); while( N-- != 0 ){ int a = sc.nextInt(); int b = sc.nextInt(); int c = 0; if( a == b ){ c = 61; }else if( Math.max(a,b) == a ){ c = 62; }else{ c = 60; } System.out.printf( "%c\n", c ); } } }