After learning about the factorial in programming class, Vasya's interest in mathematics grew significantly. Wanting to contribute something new, he invented a new operation called the multifactorial and began studying it in detail.
First, Vasya introduced the concept of the simple factorial. According to Vasya, the simple factorial of a given number is the product of all positive integers, starting from in descending order, where each factor is one less than the previous one.
Naturally, Vasya then introduced the concepts of the -factorial, -factorial, and, in general, the -factorial, which he called the multifactorial of order .
The multifactorial of order , according to Vasya, is the product of all positive integers in descending order, starting from , where each factor is less than the previous one.
Vasya illustrated these concepts with the following formulas:
n! = n \cdot (n-1) \cdot (n-2) \cdot (n-3) \cdot \ldots
n!! = n \cdot (n-2) \cdot (n-4) \cdot (n-6) \cdot \ldots
n!!! = n \cdot (n-3) \cdot (n-6) \cdot (n-9) \cdot \ldots
In general, the formula can be written as:

Inspired to tie this new branch of mathematics to real life, Vasya wondered: how many different divisors does the multifactorial of a given order have?
The first line contains the number of test cases . Each of the next lines contains the written representation of a multifactorial. The numeric part does not exceed , and the order does not exceed . In one test, there are no two identical test cases.
For each test case, output in a separate line its number: Sample : – where is the test case number, then a space, and then the number of divisors of the obtained multifactorial value of order . If this number exceeds 10^{18}, Vasya asks to output the infinity symbol he invented: oo.
Example 1