Divisor Count

For each of up to 10 values of n below 10000, print n and its divisor count.

Easy2Number theoryBrute forceInterviewNo attempts yetTime limit2sMemory limit512 MB

Problem

Given an integer nn, count the divisors of nn.

A divisor is an integer dd with 1dn1 \le d \le n that divides nn evenly.

For example, if nn is 1010, the divisors are 11, 22, 55, 1010, so the answer is 44. If nn is 99739973, the number is prime, its only divisors are 11 and 99739973, and the answer is 22.

Input

The first line contains the count of numbers to process, CC. (1C101 \le C \le 10)

Each of the next CC lines contains one integer nn. (1n<100001 \le n < 10000)

Output

For each integer nn, print one line with nn, a single space, and the number of divisors of nn.