https://www.acmicpc.net/problem/1676
#include<stdio.h> int main() { int n; scanf("%d",&n); int count=0; while(n>=5){ count+=n/5; n/=5; } printf("%d",count); }