fun main(args: Array<String>) {
    var r: List<String?> = listOf("?","?","?")

    while( {r = readLine()?.split(" ")!!; r[1]}() != "?") {
        val result = when(r[1]) {
            "+" ->  r[0]?.toInt()!! + r[2]?.toInt()!!
            "-" -> r[0]?.toInt()!! - r[2]?.toInt()!!
            "*" -> r[0]?.toInt()!! * r[2]?.toInt()!!
            "/" -> r[0]?.toInt()!! / r[2]?.toInt()!!
            else -> 0
        }
        println(result)
    }
}
