fun next() = readLine()!! fun nextInt() = next().toInt() fun nextLong() = next().toLong() fun nextDouble() = next().toDouble() fun nextList() = next().split(" ") fun nextIntList() = next().split(" ").map { it.toInt() } fun nextLongList() = next().split(" ").map { it.toLong() } fun nextDoubleList() = next().split(" ").map { it.toDouble() } fun main(){ val N = nextInt() val A = Array(N){ IntArray(N) } for(i in 0 until N){ val a = nextIntList() for(j in 0..i){ A[i][j] = a[j] } } println(A.last().joinToString(" ")) }