fun main(args: Array<String>) {
    while (true) {
        val line = readLine()!!.split(" ")
        val (a, b) = listOf(line[0], line[2]).map { it.toInt() }
        val op = line[1]

        if (op == "?") break

        println(
                when (op) {
                    "+" -> {
                        a + b
                    }
                    "-" -> {
                        a - b
                    }
                    "*" -> {
                        a * b
                    }
                    "/" -> {
                        a / b
                    }
                    else -> {
                    }
                }
        )
    }

}
