#K65547. Arithmetic Expression Evaluator
Arithmetic Expression Evaluator
Arithmetic Expression Evaluator
You are given an arithmetic expression as a string that contains non-negative integers, parentheses, and the operators +, -, *, and /. Your task is to evaluate the expression and output the result as a floating-point number.
The expression is guaranteed to be valid and does not contain any spaces. The operator precedence follows the conventional rules: multiplication ($\times$) and division ($\div$) are evaluated before addition ($+$) and subtraction ($-$), while parentheses can be used to override the default precedence.
inputFormat
The input consists of a single line containing the arithmetic expression.
outputFormat
Output the result of the evaluated expression as a floating-point number.
## sample3+2
5.0