function main(input = '') { if (!input) throw Error; let lines = input.split('\n'); let [num100, num25, num1] = lines.map((val) => parseInt(val)); let moneyAccount = num100 * 100 + num25 * 25 + num1; let numCoins = 0; moneyAccount %= 1000; numCoins += Math.floor(moneyAccount / 100); moneyAccount %= 100; numCoins += Math.floor(moneyAccount / 25); moneyAccount %= 25; numCoins += moneyAccount; return `${numCoins}`; } const { readFileSync, existsSync } = require('fs'); const stdin = '/dev/stdin'; if (existsSync(stdin)) { const input = readFileSync(stdin, 'utf8'); console.log(main(input)); } module.exports = main;