lt = chr(60) gt = chr(62) n = int(input()) for _ in range(n): a, b = map(int, input().split()) if a == b: print('=') elif min(a - b, 0) == 0: print(gt) else: print(lt)