BETA
School Problem's Submission isn't counted in score!

Total Submissions: 3172 Accuracy:

33.07%

Number of divisors
     

Two friends are playing a game. One gives an integer N  to other and asks: What is the number of divisors of N that are divisible by 3? The task is to help the other friend in finding the number of divisors.

Input:
The first line of input contains an integer T denoting the number of test cases.Then T test cases follow .Each test case consist of an integer N.

Output:
For each test case in a new line print the  number of divisors.

Constraints:

1 ≤ T ≤ 50

1 ≤ N ≤ 100000


Example:

Input:

2

6

10

Output:

2

0

Explanation:

6 has three divisors 1, 3 and 6 out of which two are divisible by 3.
10 has four divisors 1,2,5 and 10 none of which is divisible by 3

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: karan kumar

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.