fun main(args: Array) { p480() } fun p480() { val n = readLine()!!.toInt() val answer = n * (n + 1) / 2 println(answer) }