n = int(input()) matx = [] for i in range(n): matx.append(list(map(int, input().split())))