#P33. 【例8.1】人民币支付

【例8.1】人民币支付

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