You are given an arithmetic expression. If the expression can be evaluated, print its value. If the expression is invalid or any division by zero occurs during evaluation, treat it as impossible to evaluate.
In this problem, an expression is an <expr> defined by the following grammar. The grammar has no unary + or unary -.
<digit> = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
<number> = <digit> | <number> <digit>
<expr> = <number> | <expr> '+' <expr> | <expr> '-' <expr> | <expr> '*' <expr> | <expr> '/' <expr> | '(' <expr> ')'
The first line contains the expression to evaluate. The expression consists only of characters from ()*/+-0123456789, and its length is at most 1,000.
Print the value of the expression. If the expression is invalid and cannot be evaluated, print ROCK.