main = do n <- readLn putStrLn $ show $ f n f n = if n < 2 then 1 else n + f (n-1)