A: Alphametics 

Alphametics is a term coined by J.A.H. Hunter to design those puzzles where letters represent decimal digits that make true a certain mathematical relation. A well known example for this is the puzzle:

S E N D
+ M O R E
M O N E Y


In this context, Alphametic Cryptarithm Masters (ACM) is a recently founded enterprise that is interested on applications of this kind of puzzles to cryptography. For that reason, they want to develop software to solve a reduced family of alphametics in an automated way and you are supposed to help them in this task.


Alphametic puzzles of interest to ACM satisfy the following constraints:

A solution for an alphametic puzzle is a value assignment for the letters in the words of the puzzle statement, such that the equation is satisfied.

Input 

The problem input consists of several cases, each one defined by a line with the puzzle statement as described above. It is guaranteed that every problem statement is well formed. The end of the input corresponds to the end of the input file.

Output 

Output texts for each input case are presented in the same order that the input is read. For an input case in the puzzle statement, the output should be a ten character expression

$\displaystyle \langle$c0$\displaystyle \rangle$$\displaystyle \langle$c1$\displaystyle \rangle$ ... $\displaystyle \langle$c9$\displaystyle \rangle$

where $ \langle$ck$ \rangle$ is the letter of the statement whose value is the digit k . If the digit k is not assigned to any letter, $ \langle$ck$ \rangle$ should be an asterisk, so the given assignment is a solution for the puzzle instance. If such a solution does not exist, a line with ten asterisks should be written.

Sample Input 

SEND   + MORE = MONEY
CONTEST + ACM =  ACIS + ACM + CONTEST
VIOLIN + VIOLIN + VIOLA = TRIO + SONATA

Sample output 

OMY**ENDRS
**********
AVTSLROIN*