#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) #define FOE(i,a) for (auto i : a) #define ALL(c) (c).begin(), (c).end() #define EXIST(v, n) (std::find(v.begin(), v.end(), 1) != v.end()) using namespace std; int main(int argc, char *argv[]) { int L, M, N, s = 0; cin >> L >> M >> N; s += L * 100 + M * 25 + N; s %= 1000; cout << s / 100 + (s % 100) / 25 + (s % 25) / 1 << endl; }