https://cses.fi/paste/2d358ae3a172873818c259/
#include<bits/stdc++.h> #define ll long long #define fio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL) using namespace std; int main(){ ll n,ans=0; cin>>n; for(int i=5;i<=n;i*=5) ans+=n/i; cout<<ans<<"\n"; return 0; }