DWITE Contest

Test Case for Question #5 in Closed Beta Test Contest

Contest: Closed Beta Test Contest
Question: #5
Input File: DATA5.txt
Output File: OUT5.txt


Input

1
*
10
4
/
2
109
^
0




Output

10
2
1