1266: 算术

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:21 Solved:12

Description

现给出一段长度小于等于20的数学式子(不包含空格);
数学式子由正整数$n$、加号(+)、减号(-)、乘号(*)、除号(/)以及左右括号组成;
算除法只取整数,如:5÷2,结果为2;
求出这个算式的值。

Input

输入一段长度小于等于20的字符串,代表数学式子。

Output

一行输出,算出等式的结果。

Sample Input Copy

2+3*2/(3+3)*(2-3*4)/2

Sample Output Copy

-3

HINT

1 ≤ n ≤ 10000

Source/Category