Write a program to check whether a number is strong or not. A number is called strong number if sum of the factorial of its digit is equal to number itself. For example: 145 as 1! + 4! + 5! = 1 + 24 + 120 = 145
First line contains number of test cases T. Then following T lines contains an integer N.
Output "Strong" if given number is strong else "Not Strong" .
1 <= T <= 50
0 <= N <= 1000
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.