Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

FACTZERO - Zeros of factorial

Given integer n, print number of final zeros of n! (which is factorial of n).

Input

The first line of the standard input contains one integer t (t<2001) which is the number of test cases.

In each of the next t lines there is number n (0<=n<=10^9).

Output

For each test, print the number of final zeros of n!.

Example

Input:
2
10
1000000
Output:
2
249998

Special thanks to Rafał Spręga for the concept of this task.


Added by:Piotr Kąkol
Date:2009-12-26
Time limit:6.466s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: NODEJS OBJC SCM qobi VB.NET

hide comments
2010-04-09 23:47:49 Zoltán Zámbori
Changing the time limits does not help on the slow bigint routines in Perl. Better to make the test cases smaller.

Smaller test cases enable writing shorter codes and competition between languages will be much fair.

Last edit: 2010-04-10 00:01:26
2010-04-09 22:38:47 Piotr KÄ…kol
Time limit has been changed to 5sec.
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.