#include <iostream>
using namespace std;
int main() {
long long n;
cin>>n;
long long count5=0;
for(long long i=5;i<=n;i+=5)
{
long long num=i;
while(num%5 == 0)
{
num=num/5;
count5++;
}
//cout<<"count2="<<count2<<" count5="<<count5<<endl;
}
cout<<count5<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkKCWxvbmcgbG9uZyBuOwoJY2luPj5uOwoJCglsb25nIGxvbmcgY291bnQ1PTA7Cglmb3IobG9uZyBsb25nIGk9NTtpPD1uO2krPTUpCgl7CgkJbG9uZyBsb25nIG51bT1pOwoJCXdoaWxlKG51bSU1ID09IDApCgkJewoJCQludW09bnVtLzU7CgkJCWNvdW50NSsrOwoJCX0KCQkvL2NvdXQ8PCJjb3VudDI9Ijw8Y291bnQyPDwiIGNvdW50NT0iPDxjb3VudDU8PGVuZGw7Cgl9CgkKCWNvdXQ8PGNvdW50NTw8ZW5kbDsKCQoJcmV0dXJuIDA7Cn0=