Calculator#4055

Calculator

1 second
64 megabytes
Very easy

A calculator can perform the following operations:

Your task is to find the minimum number of operations required to transform the number into the number .

Input

The input consists of a single natural number , which is no greater than 10^6.

Output

On the first line of the output, print the minimum number of operations needed. On the second line, display the sequence of numbers obtained by performing these operations, starting with and ending with . If there are multiple valid sequences, you may print any one of them.

Examples

Example 1

Loading
Loading