Here is a simple puzzle. Move one stick in the figure below so that the equation becomes correct.

That one is easy. Here is the answer.

Write a program that solves puzzles of this kind under the rules below.

| digit | segments |
|---|---|
| 0 | top, top left, top right, bottom left, bottom right, bottom |
| 1 | top right, bottom right |
| 2 | top, top right, middle, bottom left, bottom |
| 3 | top, top right, middle, bottom right, bottom |
| 4 | top left, top right, middle, bottom right |
| 5 | top, top left, middle, bottom right, bottom |
| 6 | top, top left, middle, bottom left, bottom right, bottom |
| 7 | top, top right, bottom right |
| 8 | all seven |
| 9 | top, top left, top right, middle, bottom right |
The input has one or more puzzles. Each puzzle sits on one line in this format.
A ⊙ B = R (n)
A, B, and R are strings of one or more digits, and none of them is longer than nine digits. ⊙ is one of the four operators +, -, *, /. n is a natural number, the number of sticks that must be moved. One or more spaces separate A, ⊙, B, =, R, and (n).
A line that holds the word EOF, without quotes, ends the input.
Print one line for each puzzle.
k.␣result
k is the puzzle number counted from 1, ␣ is one space, and result is the equation after the puzzle is solved. result carries no spaces. When a puzzle has more than one answer, print the one that comes first in lexicographic order: the smallest left operand, and among those the smallest right operand. When a puzzle has no answer, print UNSOLVABLE, without quotes, in place of result.