Infix notation: X + Y
A * ( B + C ) / D is usually taken to mean something like: "First add B and C together, then multiply the result by A, then divide by D to give the final answer."
Prefix notation (also known as "Polish notation"): + X Y
/ * A + B C D
Now, please write a program to convert the given expressions from prefix to infix.
The first line contains a positive integer N, indicating the number of testcases in this input.
In the following N lines, each line contains a prefix expression.
In each prefix expression, there is a space between numbers and operators, and operators and operators.
Output the infix expression and its answer of each given prefix expression.
Note that