Problem Description

One line expression has digits, + - * / ( ) and spaces. Evaluate with correct precedence. If any invalid character appears, print ERR pos (1-based index in original string).

Input Format

One line expression.

Output Format

One line result or ERR pos.

Sample Test Case

Input:
10 + 2 * 3
Output:
16

Constraints

Length up to 2e5.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next