def solve(): a, b = map(int, input().split()) d = a - b if not bool(d): print(chr(61)) return d += abs(d) if bool(d): print(chr(62)) else: print(chr(60)) n = int(input()) for _ in range(n): solve()