DWITE Contest

Test Case for Question #4 in DWITE 2009-2010 High School Round 7

Contest: DWITE 2009-2010 High School Round 7
Question: #4
Input File: DATA4.txt
Output File: OUT4.txt


Input

2+3
1+2*3-4
((3+-1)*5)^0
1+(2^2)+1
1+2^3*4




Output

5
3
100
24
93