Efficient Printing
시간 제한1초메모리 제한2048 MB
n이 10^18까지 주어질 때 n!의 끝에 붙는 0의 개수를 구한다. 이는 n!에 들어 있는 5의 인수 개수와 같다.
문제
The Factorial Poster Company (FPC) prints posters that display the result of any factorial that their customers wish for. Recently, they got an order from Professor D.R. Ingenious, who wants to do an experiment with very large factorial numbers. The FPC want to be as efficient with printing as possible, and therefore they decided on a way to save paper. Since the larger factorial numbers end in a lot of zeroes, they decide to cut off this number of zeroes and replace it with "".
You are given the task to calculate, for every order of Prof. Ingenious, how many zeroes can be cut off from the poster, so that the FPC know how much poster paper they will save.
입력
One line containing one integer , with .
출력
One line containing one integer , the amount of trailing zeroes of . Note that any other zeroes in the result of do not count, see the second example.