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