The Game of Wisdom#1295

The Game of Wisdom

4 seconds
64 megabytes
Easy

The fox not only tended to his roses — he also gathered twigs and rose petals to teach the little prince wisdom. He invented a special game for his friend using twigs and petals.

With twigs, the fox laid out numbers in the sand, and between them with petals — signs for addition, subtraction, multiplication, division, and equality. Sometimes the fox made correct equations, and sometimes he deliberately made mistakes, but always offered the little prince a challenge:

— Little prince, can you, by moving only twigs and without touching the petals, make a correct equation? Remember that each twig can only be moved once, and another twig cannot be placed in a vacated spot.

The little prince very quickly learned to solve the fox's riddles and now presents them to you.

Input

The first line contains the number of riddles offered by the fox — (1 \leq T \leq 250). The following lines contain the riddles themselves, one per line in the format <\textbf{number}> <\textbf{operation}> <\textbf{number}> <\textbf{equality sign}> <\textbf{number}> — see the input example.

All numbers in the examples do not exceed 2^{31}. Leading zeros in numbers are allowed.

When forming the numbers, the fox used the following arrangement and quantity of twigs in the digits:

Output

Print lines with the solution to each riddle. If there are multiple solutions, output any one. If it is impossible to solve the riddle, output the surprised Oooops... (without quotes).

Examples

Example 1

Loading
Loading