#include #include #include #include int main() { int l,m,n; std::cin >> l >> m >> n; int tot = l * 100 + m * 25 + n; int c = 0; int o = tot / 1000; tot -= o * 1000; l = tot / 100; c += l; tot -= l * 100; m = tot / 25; c += m; tot -= m * 25; c += tot; std::cout << c << std::endl; return 0; }