If an assignment exists, print n lines in the same order as the input. Line i has the form a op b = c, where op is one of +, -, * and c is the result of that operation. Separate the parts with single spaces. The n results must all be different.
Several assignments can satisfy this, so print exactly one of them. Read the chosen operators in input order as a string and print the assignment whose string is smallest in the order +, -, *. Equivalently, go pair by pair from the first one and use + whenever the remaining pairs can still be given distinct results, otherwise -, otherwise *.
If no assignment makes the n results different, print impossible.