#C13416. Arithmetic Expression Evaluation
Arithmetic Expression Evaluation
Arithmetic Expression Evaluation
Given an arithmetic expression as a string containing non-negative integers and the operators +
, -
, *
, and /
, compute its value and output the result as an integer. The expression must be evaluated following the standard order of operations, i.e., multiplication and division are performed before addition and subtraction (i.e., $*$ and $/$ are evaluated before $+$ and $-$). For division, perform integer division as in Python (i.e., truncate the decimal part).
inputFormat
The input consists of a single line containing a valid arithmetic expression. The expression may include spaces.
outputFormat
Output a single integer representing the evaluated result of the expression.
## sample3+5 / 2
5