<expression> := <component> | <component> + <expression>
<component> := <factor> | <factor> + <component>
<factor> := <positive integer> | (<expression>)
write a program which analyses expressions conforming to the rules of this grammar and evaluates them, if the analysis has been successfully completed. It may be assumed that there is no overflow of float(C)/real(Pascal) numbers range.
Input
A integer n stating the number of expressions, then consecutive n lines, each containingan expression given as a character string.
Output
For each line value of the expression or output message ERROR if the expression does not follow the grammar.
Sample Input