#include int main(){ int _1000yenBill, _100yenCoin, _25yenCoin, _1yenCoin; scanf("%d", &_100yenCoin); printf(""); scanf("%d", &_25yenCoin); printf(""); scanf("%d", &_1yenCoin); if(_1yenCoin >= 25){ _25yenCoin += _1yenCoin/25; _1yenCoin %= 25; } if(_25yenCoin >= 4){ _100yenCoin += _25yenCoin/4; _25yenCoin %= 4; } if(_100yenCoin >= 10){ _1000yenBill += _100yenCoin/10; _100yenCoin %= 10; } printf("%d", _1yenCoin + _25yenCoin + _100yenCoin); return 0; }