n=int(input()) for _ in range(0, n): listA = list(map(int, input().split())) a = listA[0] b = listA[1] if a == b: print('=') elif a == max(a, b): print(chr(ord(";")+3)) elif b == max(a, b): print(chr(ord(';')+1))