#include<iostream> #include<vector> #include<algorithm> #include<cstdio> #include<cmath> #include<string> 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; }