output_description: Print coordinate of given points in order.
input_description: The input is given in the following format.
  
      
      
      $n$
      $x_0 \; y_0$
      $x_1 \; y_1$
      :
      $x_{n-1} \; y_{n-1}$
      
  
  In the first line, the number of points $n$ is given. In the following $n$
  lines, coordinates of each point are given.
attempt: from typing import List, Tuple
  
  
  if __name__ == "__main__":
      n = int(input())
      coordinates: List[Tuple[int, int]] = []
  
      for _ in range(n):
          (x, y) = tuple(map(lambda x: int(x), input().split()))
          coordinates.append((x, y))
  
      coordinates = sorted(coordinates, key=lambda x: (x[0], x[1]))
  
      for elem in coordinates:
          print(f"{elem[0]} {elem[1]}")
  
problem_description: Sorting Pairs
  
  Write a program which print coordinates $(x_i, y_i)$ of given $n$ points on
  the plane by the following criteria.
  
    1. first by $x$-coordinate
    2. in case of a tie, by $y$-coordinate
samples: [{"input": "5\n    4 7\n    5 5\n    2 3\n    6 8\n    2 1", "output": "2 1\n    2 3\n    4 7\n    5 5\n    6 8"}]