실버5 문제
n = int(input()) arr = [] for i in range(n): a, b = map(int, input().split()) arr.append([a, b]) arr.sort(key = lambda x:(x[0], x[1])) for j in arr: print(j[0], j[1])