#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int L, M, N, O = 0; cin >> N >> M >> L; auto f = [](int &a, int &b, int c) { int cnt = a / c; a -= cnt * c; b += cnt; }; f(L, M, 25); f(M, N, 4); f(N, O, 10); cout << L + M + N << '\n'; return 0; }