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