def main(): import sys input = sys.stdin.readline N = int(input()) for _ in range(N): a, b = map(int, input().split()) if a == b: print('=') elif a-b == abs(a-b): print(chr(62)) else: print(chr(60)) if __name__ == '__main__': main()