Path to Infinity is a never-ending math mini-game in the RPG Secrets of Grindea. In this mini-game, players are faced with a set of pressure plates marked with digits from 0 to 9, another set of pressure plates marked with operators '+' (addition), '-' (subtraction) or '*' (multiplication) and a target number shown in the flame of the green torch on the right. To proceed through this level, players have to step on the pressure plates in the correct order to form an expression whose value is exactly the same with the target number. All the pressure plates must be used exactly once.
Note that in this mini-game, all the operators have the same priority and expression is calculated from left to right. For example, expression will be figured out as , not .
You are now presented with one level of such mini-game. How many different expressions can you build from the given digits and operators so that the value of the expression is exactly ?
Two expressions are considered different if there exists an integer such that and the -th operand in the two expressions are different, or if there exists an integer such that and the -th operator in the two expressions are different.
Input Specification
There is only one test case. The first line of the input contains two integers and (, ), indicating the number of digit pressure plates and the target number.
The second line of the input contains two strings and (, ) separated by a space. String will only contain digits from 0 to 9, where the -th digit represents the digit marked on the -th digit pressure plate. String will only contain operators '+', '-' and '*', where the -th operator represents the operator marked on the -th operator pressure plate.
Output Specification
Output two lines. The first line contains an integer indicating the number of different expressions built from the given digits and operators so that its value is exactly . The second line contains a string without spaces indicating the desired expression with the smallest lexicographic order. Characters in the expressions are compared by their ASCII code.
If one cannot build any desired expression, print "Impossible" on the second line instead.