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