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