#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include typedef long long int ll; //#include using namespace std; int main() { int Q; Q = 1; //cin >> Q; while (Q--) { int l, m, n; cin >> l >> m >> n; int p = l * 100 + m * 25 + n; p %= 1000; int ans = p / 100; p %= 100; ans += p / 25; p %= 25; ans += p; cout << ans << endl; } return 0; }