#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; cout<<n/50+n%50/20+n%50%20/5+n%5; return 0; }