#include <iostream>
using namespace std;
int main(void)
{
int n;
cin >> n;
int cnt = 0; //5로 나누는 경우
for (int i = 2; i <= n; i++)
{
int temp = i; //i의 값 임시 저장
while (temp % 5 == 0) //5로 나눌 수 없을 때까지 반복
{
temp /= 5;
cnt++;
}
}
cout << cnt;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKHZvaWQpCnsKCWludCBuOwoJY2luID4+IG47CgoJaW50IGNudCA9IDA7CQkvLzXroZwg64KY64iE64qUIOqyveyasAoJCglmb3IgKGludCBpID0gMjsgaSA8PSBuOyBpKyspCgl7CgkJaW50IHRlbXAgPSBpOwkJLy9p7J2YIOqwkiDsnoTsi5wg7KCA7J6lCgkJd2hpbGUgKHRlbXAgJSA1ID09IDApCS8vNeuhnCDrgpjriIwg7IiYIOyXhuydhCDrlYzquYzsp4Ag67CY67O1CgkJewoJCQl0ZW1wIC89IDU7CgkJCWNudCsrOwoJCX0KCX0KCWNvdXQgPDwgY250Owp9