description: Monocarp wrote down two numbers on a whiteboard. Both numbers follow a specific format: a positive integer x with p zeros appended to its end.
  
  Now Monocarp asks you to compare these two numbers. Can you help him?
  
  Input
  
  The first line contains a single integer t (1 ≤ t ≤ 10^4) — the number of testcases.
  
  The first line of each testcase contains two integers x_1 and p_1 (1 ≤ x_1 ≤ 10^6; 0 ≤ p_1 ≤ 10^6) — the description of the first number.
  
  The second line of each testcase contains two integers x_2 and p_2 (1 ≤ x_2 ≤ 10^6; 0 ≤ p_2 ≤ 10^6) — the description of the second number.
  
  Output
  
  For each testcase print the result of the comparison of the given two numbers. If the first number is smaller than the second one, print '<'. If the first number is greater than the second one, print '>'. If they are equal, print '='.
  
  Example
  
  Input
  
  
  5
  2 1
  19 0
  10 2
  100 1
  1999 0
  2 3
  1 0
  1 0
  99 0
  1 2
  
  
  Output
  
  
  &gt;
  =
  &lt;
  =
  &lt;
  
  Note
  
  The comparisons in the example are: 20 > 19, 1000 = 1000, 1999 < 2000, 1 = 1, 99 < 100.
solution: from collections import deque
  import heapq
  from math import sqrt
  import operator
  from operator import itemgetter
  import sys
  import time
   
  import copy
   
   
  inf_var = 0
  if inf_var == 1:
      inf = open('input.txt', 'r')
  else:
      inf = sys.stdin
   
  input = inf.readline
  # sys.stdout = open('output.txt', 'w')
   
  def read_one_int():
      return int(input().rstrip('\n'))
   
   
  def read_one_float():
      return float(input().rstrip('\n'))
   
   
  def read_list_of_ints():
      res = [int(val) for val in (input().rstrip('\n')).split()]
      return res
   
   
  def read_list_of_ints_zero():
      return [int(val) - 1 for val in (input().rstrip('\n')).split()]
   
   
  def read_str():
      return input().rstrip()
  
  
  def main():
      tests = read_one_int()
  
      for _ in range(tests):
          x1, p1 = read_list_of_ints()
          x2, p2 = read_list_of_ints()
  
          str1 = str(x1)
          str2 = str(x2)
  
          len_str1 = len(str1) + p1
          len_str2 = len(str2) + p2
  
          if len_str1 > len_str2:
              print('>')
              continue
          elif len_str1 < len_str2:
              print('<')
              continue
  
          if len(str1) < len(str2):
              str1 += '0' * (len(str2) - len(str1))
          elif len(str1) > len(str2):
              str2 += '0' * (len(str1) - len(str2))
  
          res = ''
          for i in range(len(str1)):
              if str1[i] > str2[i]:
                  res = '>'
                  break
              elif str1[i] < str2[i]:
                  res = '<'
                  break
          
          if not res:
              print('=')
          else:
              print(res)
  
  if __name__== '__main__':
      main()
  