fun main(args: Array<String>) {
    var input: Int = Integer.parseInt(readLine())
    var sum: Int = 0
    while(input >= 1){
        sum = sum + input
        input--
        // println("sum = ${sum}")
        // println("input = ${input}")
    }
    println(sum)
}