#!/usr/bin/env python3 # -*- coding: utf-8 -*- import operator def main(): N = int(input()) for _ in range(N): a,b = map(int, input().split()) if a == b: print("=") elif operator.lt(a,b): print(chr(60)) elif operator.gt(a,b): print(chr(62)) if __name__ == "__main__": main()