#Lutece0276. Diophantus

Diophantus

Migrated from Lutece 276 Diophantus

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

Diophantus of Alexandria was an Egypt mathematician living in Alexandria. He was one of the first mathematicians to study equations where variables were restricted to integral values. In honor of him, these equations are commonly called Diophantine equations. One of the most famous Diophantine equation is xn+yn=znx_n + y_n = z_n. Fermat suggested that for n>2n > 2, there are no solutions with positive integral values for x,yx, y and zz. A proof of this theorem (called Fermat’s last theorem) was found only recently by Andrew Wiles.

Consider the following Diophantine equation:

title

Diophantus is interested in the following question: for a given nn, how many distinct solutions (i. e., solutions satisfying xyx \leq y) does equation (1)(1) have? For example, for n=4n = 4, there are exactly three distinct solutions:

title

Clearly, enumerating these solutions can become tedious for bigger values of nn. Can you help Diophantus compute the number of distinct solutions for big values of nn quickly?

Input

The first line contains the number of scenarios. Each scenario consists of one line containing a single number n(1n109)n (1 \leq n \leq 10^9).

Output

The output for every scenario begins with a line containing Scenario #i:, where ii is the number of the scenario starting at 11. Next, print a single line with the number of distinct solutions of equation (1)(1) for the given value of nn. Terminate each scenario with a blank line.

Samples

2
4
1260
Scenario #1:
3

Scenario #2:
113

Note

The data used in this problem is unofficial data prepared by OrangeWall. So any mistake here does not imply mistake in the offcial judge data.

Resources

TUD Programming Contest 2006, Darmstadt, Germ