#include #include #include #include #include #include #include using namespace std; int main(){ int l,m,n; cin >> l >> m >> n; int ans=0; int total = l*100 + m*25 + n*1; while( total >= 1000 ){ total -= 1000; } while( total >= 100 ){ total -= 100; ans++; } while( total >= 25 ){ total -= 25; ans++; } while( total > 0 ){ total -= 1; ans++; } cout << ans << endl; return 0; }