Limits 1s, 512 MB

Poltu gives a problem to his friend Boltu. The description is given below:

You are given an integer N. You have to calculate the number of trailing zero of 1!×2!×3!×4!×5!××(N1)!×N!1! × 2! × 3! × 4! × 5! ×……× (N - 1)! × N!

Here, 0!=10! = 1 and A!=A×(A1)!A! = A × (A - 1)!

If you don't know about trailing zero, see this.

Input

The first line contains an integer TT (1T1051 ≤ T ≤ 10^5), number of test case. Every Test case contains an integer NN (1N1091 ≤ N ≤ 10^9).

Output

For each test case, print the case number and the result of this problem.

Sample

InputOutput
3
4
5 
10
Case 1: 0
Case 2: 1
Case 3: 7

Submit

Login to submit.

Contributors

Statistics

52% Solution Ratio
prodip_bsmrstuEarliest, Dec '20
Asif_AlimFastest, 0.0s
prodip_bsmrstuLightest, 3.0 MB
steinumShortest, 260B
Toph uses cookies. By continuing you agree to our Cookie Policy.