main = interact $ (++ "\n") . show . (\x -> div (x * (x + 1)) 2) . read