#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define pb push_back #define mp make_pair #define ll long long #define PI acos(-1.0) #define ALL(A) (A).begin(), (A).end() #define vsort(v) sort(v.begin(),v.end()) #define FOR(I,A,B) for(int I = (A); I < (B); ++I) int main(){ int L, M, N; cin >> L >> M >> N; //L->M M += L / 25; L -= (L / 25) * 25; //M->N N += M / 4; M -= (M / 4) * 4; //N->1000円札 N -= (N / 10) * 10; cout << L + M + N << endl; }