minict02

View as PDF

Points: 100 (p) Time limit: 1.0s Memory limit: 1023M Input: stdin Output: stdout

Allen có rất nhiều tiền. Anh ấy có n dollars trong ngân hàng. Vì lý do bảo mật, anh ấy muốn rút hết tiền ra. Các mệnh giá của tờ dollar bao gồm: \(1, 5, 10, 20, 100\). Hỏi số lượng tối thiểu tờ tiền mà Allen có thể nhận được là bao nhiêu?

Input

  • Gồm hai số nguyên n (\(2 \le n \le 10^{18}\))

Output

  • Một số nguyên là kết quả.

Example

Test 1

Input
125
Output
3

Test 2

Input
43
Output
5

Comments

There are no comments at the moment.