import java.util.*;
import java.math.BigDecimal;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
public class Main {
public double solution(String input) {
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByName("js");
Object temp = 0;
try{
temp = engine.eval(input);
}catch(ScriptException e){
e.printStackTrace();
}
double temp1 = Double.valueOf(temp.toString());
BigDecimal btemp = new BigDecimal(temp1);
double result = btemp.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
return result;
}
}