[Problem] Create a program which converts a character string of calculation formula to a postfix expression and calcu lates it.
For example, a character string “3+(4+5)*6+7” can be converted to a postfix expression "345+6*+7+". The calculation should yield 64. The operators used in the formula are ‘+’ and ‘*’. Pa rentheses can be used in the formula. The operands ar e the integers between 0 ~ 9. The parentheses are alw ays paired properly. [Input] The first line of the input file provides the length of the test case. The test cases are given in the nex t lines. Total of 10 test cases are given.