Олимпиадный тренинг

Задача 44999. Expression evaluation with functions


Задача

Темы: Деревья

Write a program that calculates the value of an arithmetic expression written as a character string. The expression uses integers, arithmetic operators, parentheses, and function calls ( sin , cos , abs , sqrt ). The result of the division operation – real number.

 

Input

The input of the program is a character string containing the correct notation of an arithmetic expression.

 

Output

The program must output the value of the expression passed to it as a real number. When displaying the result, you need to leave 3 digits in the fractional part of the number.

 
Examples
# Input Output
1
12+cos(sqrt(12+sin(2)))
11.100