#include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; int main(void) { int P = 0, L, M, S; cin >> L >> M >> S; if ((S / 25) > 0) { M += S / 25; S %= 25; } if ((M / 4) > 0) { L += M / 4; M %= 4; } if ((L / 10) > 0) { P += L / 10; L %= 10; } int Sum = L + M + S; cout << Sum << endl; return 0; }