C. 【例8.1】人民币支付

    Type: Default 60ms 10MiB

【例8.1】人民币支付

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

Given an amount in yuan (e.g., 345345), determine the number of each denomination of RMB needed to make up this amount. Display the number of 100100 yuan, 5050 yuan, 2020 yuan, 1010 yuan, 55 yuan, and 11 yuan bills, using as many large denominations as possible.

Input Format

A positive integer less than 10001000.

Output Format

Output one integer per line, representing the number of 100100 yuan, 5050 yuan, 2020 yuan, 1010 yuan, 55 yuan, and 11 yuan bills from top to bottom.

Sample

735
7
0
1
1
1
0

20230913B班作业(1)

Not Claimed
Status
Done
Problem
5
Open Since
2025-9-13 0:00
Deadline
2025-9-21 23:59
Extension
24 hour(s)