#include #include #include using namespace std; int main() { int a,b,c; cin >> c >> b >> a; b = b + a / 25; a = a - 25 * (a / 25); c = c + b / 4; b = b - 4 * (b / 4); c = c - 10 * (c / 10); cout << a + b + c; }