fun main(args: Array){ val n = readLine()!!.toInt() val array = readLine()!!.split(" ").map { it.toLong() } var sum = 0L for (j in 0..n-1) { sum+=array[j] } println(sum) }