PROGRAMMING:Digital output
Give a positive integer with no more than 5 bits.
(1) Find out how many digits it is.
(2) Print out each digit separately.
(3) Print each digit in reverse order. For example, when the original number is 321, 123 should be output.
###Input format:
There are several groups of test data, which are processed to the end of the file. Enter a positive integer with no more than 5 digits for each group.
###Output format:
Each group outputs its digits and each digit in the same line, and prints its digits in reverse order. There is a space between the parts and a space between each digit.
###Input example:
Here is a set of inputs. For example:
```in
one hundred and twenty-three
eight thousand six hundred and fifty-seven
ninety-one thousand two hundred and sixty-three
```
###Output example:
The corresponding output is given here. For example:
```out
3 1 2 3 321
4 8 6 5 7 7568
5 9 1 2 6 3 36219
```
answer:If there is no answer, please comment
(1) Find out how many digits it is.
(2) Print out each digit separately.
(3) Print each digit in reverse order. For example, when the original number is 321, 123 should be output.
###Input format:
There are several groups of test data, which are processed to the end of the file. Enter a positive integer with no more than 5 digits for each group.
###Output format:
Each group outputs its digits and each digit in the same line, and prints its digits in reverse order. There is a space between the parts and a space between each digit.
###Input example:
Here is a set of inputs. For example:
```in
one hundred and twenty-three
eight thousand six hundred and fifty-seven
ninety-one thousand two hundred and sixty-three
```
###Output example:
The corresponding output is given here. For example:
```out
3 1 2 3 321
4 8 6 5 7 7568
5 9 1 2 6 3 36219
```
answer:If there is no answer, please comment