Cirno のさんすう教室

Time Limit: 1000 ms Memory Limit: 65536 KiB

Problem Description

 

チルノ(Cirno)は幻想郷最強! Espacially for her arithmetic(さんすう) ability. Now she is in some kind of trouble. As we can infer, arithmetic book can be very significant to her due to her deep love for arithmetic. But some days ago her arithmetic book was stained in the battle against 霊夢(Reimu). Cirno is so impatient that she is now coming to you for help. If you successfully repair the arithmetic book, she will pay you an "Accpeted" in return. お願いします!

 

 In the arithmetic book, there are n equations in the form of "A + B = C", "A - B = C" or "A * B = C", (there is a space between every two adjacent elements)

Here, A, B, C each represents some number, or represents a '?', which means that this place is stained and the number here is invisible. 

It is guaranteed that for each equation there is at most one '?' in it.(or say that there can be no '?'.)

Input

There are (n + 1) lines of input.

In the first line, there is an integer n , the number of equations in the arithmetic book.

For each line below, there is an equation:

  • input  a number A or a '?'
  • input an operator '+', '-', or '*'
  • input a number B or a '?'
  • input a '='
  • input a number C or a '?'

 

n <= 2000, 1 <= A, B, C <= 9.

 

It is guaranteed that every number in an equation is a non-negative integer less than 10 after repairing.

Output

For each equation, output the equation repaired in the form of  "A + B = C".

Sample Input

4
? * 2 = 4
1 + ? = 2
5 - 4 = ?
3 * 2 = 6

Sample Output

2 * 2 = 4
1 + 1 = 2
5 - 4 = 1
3 * 2 = 6

Hint

Source

Fish