865. Expression Calculator

0

Medium

Given a string s representing a valid expression, calculate and output its value.

Input Format

The input consists of a single line containing a string s (the expression).

Output Format

Output the value of the expression as an integer.

Example

Input

3+5/2*4

Output

11

Constraints

* The length of the string s is between 1 and 10000.
* The string s consists of integers and operators ('+', '-', '*', '/') separated by some number of spaces.
Loading...

View Submissions

Console