Олимпиадный тренинг

Задача 44997. Evaluation of a simple expression


Задача

Темы: Деревья

Write a program that calculates the value of an arithmetic expression written as a character string. The expression uses only integers and signs of arithmetic operations (+-*/). The result of the division operation – integer.

 

Input

The input of the program is a character string containing the correct notation of an arithmetic expression.

 

Output

The program should output the value of the expression passed to it as an integer.

 
Examples
# Input Output
1
125-6-73/5*8
7