#include using namespace std; int L, M, N; int main() { cin >> L >> M >> N; int total = L * 100 + M * 25 + N * 1; int res = 0; total %= 1000; res += total / 100; total %= 100; res += total / 25; total %= 25; res += total; cout << res << endl; return 0; }