I tried to run this code giving custom inputs ,it worked properly in there but when I am submiting my code its giving Wrong Answer .Please tell me what should I do .
from math import floor
for _ in range(int(input())):
n=int(input())
nz=floor(n/5)
ntz=nz
while nz>5:
nz=floor(nz/5)
ntz+=nz
print(ntz)