fun main(args: Array) { p9009() } fun p9009() { val n = readLine()!!.toInt() val aList = Array(n) { readLine()!!.toInt() } val answer = aList.sum() println(answer) }