#include #include #include using namespace std; int main() { int c100, c25, c1; cin >> c100 >> c25 >> c1; int cnt = 0; cnt += c1 % 25; c25 += c1 / 25; cnt += c25 % 4; c100 += c25 / 4; cnt += c100 % 10; cout << cnt << endl; return 0; }