1386: stem超级幸运数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:7 Solved:3

Description

Input

Output

Sample Input Copy

3
74 417 40444444

Sample Output Copy

2