n = int(input()) for i in range(n): a,b = map(int,input().split()) maxim = max(a, b) minim = min(a, b) if maxim == minim: print('=') elif maxim == a: print(chr(62)) elif minim == a: print(chr(60))