n = int(input()) for _ in range(n): a, b = map(int, input().split()) if a == b: print('=') else: print('>' if max(a, b) == a else '<')