#include using namespace std; #define REP(i,N) for(i=0;i P; typedef struct{ int first; int second; int third; }T; //昇順 bool comp_Se(T& l, T& r){ return l.second < r.second; } int main(void){ int T=0,L,M,N; cin >> L >> M >>N; M+=N/25; N-=(N/25)*25; L+=M/4; M-=(M/4)*4; T+=L/10; L-=(L/10)*10; cout << L+M+N << endl; return 0; }