#C13408. Evaluate Mathematical Expression

    ID: 42943 Type: Default 1000ms 256MiB

Evaluate Mathematical Expression

Evaluate Mathematical Expression

Given an arithmetic expression as a string, evaluate the expression and output the result as an integer. The expression may include positive integers, the operators +, -, *, /, and parentheses ( ). The operators follow the standard operator precedence rules. Note that division should be treated as integer division (i.e. the result is truncated towards zero).

inputFormat

The input consists of a single line containing a valid arithmetic expression. The expression may include spaces.

outputFormat

Output a single integer that is the result of evaluating the arithmetic expression.

## sample
3 + 2
5