#include #include #include #include #include using namespace std; int main(){ int L, M, N; cin >> L >> M >> N; if(N / 25 != 0){ M = M + N / 25; N = N % 25; } if(M / 4 != 0){ L = L + M / 4; M = M % 4; } if(L / 10 != 0){ L = L % 10; } int cnt = L + M + N; cout << cnt << endl; }