Given a natural number n, calculate the following sum S:
The input contains a single natural number n (1 \leq n \leq 10^6).
Output the sum S.
Example 1
Each correct test case will earn points. The total score is 100.