import javax.script.*;
import java.util.Scanner;

/**
 * HJ54 表达式求值 - 简单
 */
public class HJ054 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String expression = sc.nextLine();
        ScriptEngineManager seManger = new ScriptEngineManager();
        ScriptEngine sEngine = seManger.getEngineByName("js");
        try {
            String result = String.valueOf(sEngine.eval(expression));
            if (result.contains(".")) {
                String sub = result.substring(0, result.indexOf("."));
                System.out.println(sub);
            } else {
                System.out.println(result);
            }
        } catch (ScriptException e) {
            e.printStackTrace();
        }
        sc.close();
    }
}