#include <iostream>
using namespace std;

int main() {
	int n, say=0;
	cin>> n;
	
	while(n>=5) {
		n= n / 5;
		say+= n;
	}
	cout<< say;
	return 0;
}