Kevin was reading about various types of numbers like palindromes, primes, Fibonnaci and many more and got fascinated with them . Therefore he came with a special type of a number, which he called as a “divine” number.
For a given positive integer to be divine it must satisfy both of the following conditions:
Kevin wants to find how many divine numbers with digits exist and goes to Nick for help. Nick agrees to help his brother out, but actually is busy wooing Priyanka(because that is what people do after clearing JEE) and doesn’t have the time. Therefore he asks you to solve it for him so that he can come across as a responsible elder brother and all while get Priyanka .
Input
• The first line of the input contains a single integer denoting the number of test cases. The description of test cases follows.
• The first and only line of each test case contains a single integer .
Output
For each test case, print a single line containing a single integer — number of -digit positive divine numbers later modulo .
Constraints
• 1 ≤ ≤
• 1 ≤ ≤
Problem Setter: Shivam Jadhav
Example case 1: The possible 1-digit divine numbers are 2,3,5,7.