To evaluate a program efficiently, a language processor often transforms it into a syntax tree. In this problem you are given a syntax tree of a mathematical expression using ASCII characters. Please evaluate the expression.
The syntax tree we consider in this problem is a rooted binary tree where each node has either zero or two children. If a node has zero children, it is an integer node that corresponds to a single integer between 0 and 9, inclusive. On the other hand, if a node has two children, the node is a binary operation node that corresponds to a binary operation of either addition, subtraction or multiplication. In this case the left and right children correspond to the left and right operands of the binary operation, respectively. For example, Figure B.1 represents the syntax tree of expression (9 - 4) * ((7 * 2) + 5).
To represent such a syntax tree using ASCII characters, you are given $H$ strings of $W$ characters. Each character is either '+', '-', '*', a digit between '0' and '9', or a period that represents a blank. For example, here is the representation of the syntax tree of Figure B.1.
...*..... .-.....+. 9.4..*..5 ....7.2..
Figure B.2 shows the rules (similar to Backus-Naur Form) of such representation of a syntax tree.
More precisely, the rules are defined as follows.
Your task is to calculate the mathematical expression that corresponds to the given syntax tree formatted by the above rules.
The input consists of a single test case of the following format.
$H$ $W$ $s_1$ : $s_H$
The first line contains two integers $H$ and $W$ ($1 \leq H, W \leq 37$), which represent the height and width of the representation of the given syntax tree. The following $H$ lines consist of strings of length $W$ where each character is either '+', '-', '*', a digit between '0' and '9', or a period. It is guaranteed that these strings represent a syntax tree of a mathematical expression in a valid form.
Print the calculation result of the mathematical expression that corresponds to the given input.
1 1 5
5
2 3 .-. 9.2
7
4 9 ...*..... .-.....+. 9.4..*..5 ....7.2..
95