Problem1645--exam-5.7-number

1645: exam-5.7-number

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 237  Solved: 55
[Submit] [Status] [Web Board] [Creator:]

Description

Give an integer, require 1. Find out how many digits it is 2. Output each digit separately 3. Output each digit in reverse order. For example, if the original number is 321, 123 should be output

Input

an integer

Output

three lines: Number of digits in the first row In the second line, separate each number with a space. Note that there is no space after the last number The third line outputs the number in reverse order

Sample Input Copy

12345

Sample Output Copy

5
1 2 3 4 5
54321

Source/Category

132