A sequence of numbers is written in a strange format:
for each number, first the number of digits in this number is written, and then through
space - the numbers themselves. The sequence ends with the number 0.
In the output file, you must first display the number of numbers in the sequence,
and then - the numbers themselves in a column.
The number of numbers in the sequence does not exceed 1000. In numbers - no more than
4 characters.
Examples:
Enter |
Output |
2 2 7 3 3 5 1 0
|
2
27
351 |
1 1 0 |
1
1 |
4 1 2 3 4 2 4 3 0
|
2
1234
43 |