#include <iostream> #include <vector> #include <string> #include <algorithm> #include <cstdio> #include <cstring> #include <cmath> using namespace std; int main() { int l, m, n; cin >> l >> m >> n; int c = l * 100 + m * 25 + n; int r = 0; c %= 1000; r += c / 100; c %= 100; r += c / 25; c %= 25; r += c; cout << r << endl; return 0; }