Given an integer n, calculate the sum of all integers from 1 to n (inclusive).
Each line contains a single integer n (|n| \leq 10000). The last line contains 0 and should not be processed.
For each value of n, print the answer on a separate line.
Example 1