#include using namespace std; int main() { std::cin.tie(0); std::ios::sync_with_stdio(false); int L, M, N; cin >> L >> M >> N; int total = 100 * L + 25 * M + N; // cout << total << endl; int ans = 0; total = total % 1000; ans += total / 100; total = total % 100; ans += total / 25; total = total % 25; ans += total; cout << ans << endl; return 0; }