import Foundation
 
let input_line: String = readLine()!
let split: [String] = input_line.components(separatedBy: " ")
 
var N = Int(split[0])!

if (N%2==0){
    print(1/2)
}else{
    print((N+1)/2*N)
}
