fun main(args: Array<String>) {
    while (true) {
        val (_a, op, _b) = readLine()!!.split(" ")
        val a = _a.toInt()
        val b = _b.toInt()
        if (op == "?")
            break
        val ans = when (op) {
            "+" -> a+b
            "-" -> a-b
            "*" -> a*b
            "/" -> a/b
            else -> 4000001
        }
        println("${ans}")
    }
}
