#include using namespace std; int main() { int L, M, N,ans; cin >> L >> M >> N; M =M+ N / 25; N = N % 25; L =L+ M / 4; M = M % 25; L = L % 10; ans = L + M + N; cout << ans << "\n"; return 0; }