#include #include #include #include #include #include #include using namespace std; #define diff(x, y) ((x) > (y) ? ((x) - (y)) : ((y) - (x))) int main(void) { int h, t, o; cin >> h >> t >> o; if (o >= 25) { t = o / 25; o %= 25; } if (t >= 4) { h = t / 10; t %= 10; } if (h >= 10) h %= 10; cout << o + t + h << endl; return 0; }