Lucky ticket#4684

Lucky ticket

1 second
64 megabytes
Very hard

A ticket on the planet Olympia features a six-digit number. The locals have a unique method for determining if a ticket is lucky. They choose a specific number , and attempt to derive this number from the ticket using the following rules:

1. First, the ticket number is divided into individual digits, and some adjacent digits can be combined to form new numbers. 2. Mathematical symbols such as brackets, plus, minus, multiply, and divide are inserted between these numbers according to standard mathematical rules. A unary minus is also permissible. 3. The order of the digits cannot be changed. 4. If it is possible to create an expression that evaluates to the desired number , then the ticket is considered lucky.

The divide operation is only allowed when the division results in an integer.

Consider the ticket number: . Let k = 840. You can split the number into four parts: , , , . The number can be obtained, for example, as follows: 1 * (8 / 2 + 836) = 840.

Write a program named LUCKY that, given a ticket number and the number , determines whether the ticket is lucky and finds one possible way to split the number into a sequence of numbers. Between these numbers, mathematical operations and brackets can be placed to achieve the desired number .

Input

The input file contains a single line with two numbers: an integer (1 \leq k \leq 1000) and the ticket number. The ticket number consists of six digits and may begin with .

Output

The output file should contain a single line with any valid set of numbers into which the ticket number can be split to achieve the number . If the number cannot be obtained, the output should contain the digit 0.

Examples

Example

Input
840 182836
Output
1 8 2 836

Example

Input
10 100001
Output
0

Example 1

Loading
Loading