A pyramid of blocks is built by first laying a base layer of $n$ blocks, then placing $n-1$ blocks on the layer above it. Each successive layer uses one fewer block than the layer below, and this continues until the top layer holds a single block.

Given the size of the base layer, determine the total number of blocks needed to complete the pyramid. For example, a pyramid whose base has size $4$ needs $10$ blocks in total.
The input is a sequence of integers, one per line. The end of the input is marked by the integer $0$, which is not the base of any pyramid. Every integer except the final $0$ is positive.
For each positive integer, print the total number of blocks needed to build the pyramid whose base has that size, one result per line.