fun main(args: Array){ var a = readLine()!!.toInt() var sum = 0L var num = 0 while (num != a) { sum += readLine()!!.toLong() num += 1 } println(sum) }