fun main(args:Array<String>):Unit {
    var current = readLine()!!.trim().toInt()
    while(true){
        val op = readLine()!!.trim()
        when(op){
            "=" -> {
                println(current)
                return
            }
            else -> {
                val right = readLine()!!.trim().toInt()
                when(op){
                    "+" -> current += right
                    "-" -> current -= right
                    "*" -> current *= right
                    else -> current /= right
                }
            }
        }
    }
}
