https://www.acmicpc.net/problem/8393
import java.util.*;
fun main(args: Array<String>) {
val s=Scanner(System.`in`)
var n=s.nextInt()
var sum=0
if(n%2==1){
var m=(n+1)/2
sum=(1+n)*(n/2)+m
}
else sum=(1+n)*((n+1)/2)
print(sum)
}