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