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

        if ("?" == op) {break}

        when (op) {
            "+" -> println("%d".format(a + b))
            "-" -> println("%d".format(a - b))
            "*" -> println("%d".format(a * b))
            "/" -> println("%d".format(a / b))
        }
    }
}

