The ``Countdown'' TV show has a part that consists of obtaining a number by combining six different numbers using the basic mathematical operations: addition, subtraction, product and division. The basic rules for the game are:

\epsfbox{p12553.eps}

Example:

Your task is to write a program that calculates the best sequence of operations that lead to the target number T. If there is no way to get T, give the closest solution.

Input 

The input consists of several cases, one per line. The first line indicates the number of cases C to process ( 1$ \le$C$ \le$50). Each of the following C lines contains six natural numbers from the set {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 25, 50, 75, 100} and another natural number T ( 1$ \le$T$ \le$999) that indicates the target.

Output 

The output for each case will be a set of lines with the following format:*


Note: See example for a better understanding. If there is more than one best approximation, all of them will be considered valid. The sequence of operations should be valid, you should never use a value before you obtain it. It is OK to print more operations than needed as long as they are valid. Note that all the numbers and operators must be separated by at least one space.

Sample Input 

3
1 75 100 5 3 25 25
100 100 100 100 100 75 345
1 3 1 10 100 75 345

Sample Output 

Target: 25
Best approx: 25

Target: 345
100 + 100 = 200
75 + 100 = 175
200 * 175 = 35000
35000 - 100 = 34900
34900 / 100 = 349
Best approx: 349

Target: 345
100 - 10 = 90
3 * 90 = 270
270 + 75 = 345
Best approx: 345