Diophantus of Alexandria#2528

Diophantus of Alexandria

1 second
128 megabytes
Very easy

Diophantus of Alexandria was an Egyptian mathematician who lived in Alexandria. He was one of the first mathematicians to study equations where variables are restricted to integer values. In his honor, these equations are called diophantine equations. One of the most famous diophantine equations is x^n + y^n = z^n. Fermat suggested that for n > 2, there are no solutions with positive integer values for , , and . A proof of this theorem, known as Fermat's Last Theorem, was found only recently by Andrew Wiles, an English mathematician working at Princeton University (USA).

Consider the following diophantine equation:

\frac{1}{x} + \frac{1}{y} = \frac{1}{n}

where x, y, n \in \mathbb{N}^+ \qquad (1)

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

\frac{1}{5} + \frac{1}{20} = \frac{1}{4} \\ \frac{1}{6} + \frac{1}{12} = \frac{1}{4} \\ \frac{1}{8} + \frac{1}{8} = \frac{1}{4}

Clearly, enumerating these solutions can be tedious for large values of . Can you help Diophantus quickly compute the number of distinct solutions for large ?

Input

The first line contains the number of test cases. Each test case is given in a separate line and contains a single integer (1 \leq n \leq 10^9).

Output

The output for each test case begins with a line containing the message Scenario #i:, where is the number of the test case starting from . The next line should display the number of distinct solutions to equation for the given value of . Output a blank line after each test case.

Examples

Example 1

Loading
Loading