CodeLab Academy 📞 9936 6696
← List Python · Level 10: Algorithms Code · 100 points ← #908 #910 →

#909. Fewest coins 1, 5, 10, 25

You have as many 1, 5, 10, 25 coins as you want. Find the smallest number of coins that add up to n. If it is impossible, print -1. ### Input One integer n (0 ≤ n ≤ 1000). ### Output A number.

Examples

Input
823
Output
37
Input
988
Output
43

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!