#include using namespace std; int main() { int l, m, n; cin >> l >> m >> n; int rest = (100 * l + 25 * m + n) % 1000; l = rest / 100; rest = (rest - 100 * l) % 100; m = rest / 25; rest = (rest - 25 * m) % 25; n = rest; cout << l + m + n << endl; return 0; }