N = int(input()) for _ in range(N): a, b = map(int, input().split()) if not len(set([a, b])) // 2: print(chr(61)) elif not len(set([a, max(a, b)])) // 2: print(chr(62)) else: print(chr(60))