#include using namespace std; int main() { int total, L, M, N,O; total =L = M = N = O = 0; cin >> L >> M >> N; int tN = N * 1; while (tN > 0) { if (tN >= 25) { tN -= 25; if (tN < 0) { break; } N-=25; M++; } else { break; } } int tM = M * 25; while (tM > 0) { if (tM >= 100) { tM -= 100; if (tM < 0) { break; } M-=4; L++; } else { break; } } int tL = L * 100; while (tL > 0) { if (tL >= 1000) { tL -= 1000; if (tL < 0) { break; } L-=10; } else { break; } } total = L + M + N; cout << total << endl; return 0; }