Given a positive integer N. Write a program to find count of digits of the number which evenly divides the number N.
First line of input of contains a single integer T which denotes the number of test cases. T test cases follows. First line of each test cases contains a single integer N.
For each test case print the count of all those digits in N which evenly divides N.