Candy has candy in $F$ different flavors, and she wants to make several packs to sell them. Each pack is one of two kinds:
Candy calls a packing nice if it satisfies all of the following conditions:
Candy wonders how many different nice packings she can make. Two nice packings are considered different if they differ in the number of flavored packs, in the number of variety packs, or in the number of pieces of candy per pack.
The input consists of several test cases. Each test case is given on two lines. The first line contains an integer $F$ ($2 \le F \le 10^5$), the number of flavors. The second line contains $F$ integers $C_i$ ($1 \le C_i \le 10^9$), the number of pieces of candy of each flavor.
The last test case is followed by a line containing a single $0$.
For each test case, output on its own line the number of different nice packings that can be made according to the rules above.