Basic Math
시간 제한5초메모리 제한1024 MB
주어진 n개의 수 쌍마다 덧셈, 뺄셈, 곱셈 중 하나를 골라 n개의 결과값이 모두 서로 다르게 만들거나 불가능함을 판정한다.
문제

Example exam by Ellen.
Ellen is teaching elementary math to her students and the time for the final exam has come. The exam consists of questions. In each question, the students have to add ('+'), subtract ('-') or multiply ('*') a pair of numbers.
Ellen has already chosen the pairs of numbers. All that remains is to decide for each pair which of the three possible operations the students should perform. To avoid students getting bored, Ellen wants to make sure that the correct answers to her exam are all different.
Please help Ellen finish constructing the exam by automating this task.
입력
The input consists of:
- One line with an integer (), the number of pairs of numbers.
- lines with two integers and (), a pair of numbers used.
출력
If there is no way to construct the exam such that the correct answers are all different, output "impossible".
Else, for each pair of numbers in the same order as in the input, output a valid equation. Each equation should consist of five parts: , one of the three operators, , an equals sign ('='), and the result of the expression. All the expression results must be different.
If there are multiple valid solutions, you may output any one of them.