main = readLn >>= print . sum . (flip take) [1..]