import scala.io.StdIn.readLine

object Main {
  def main(args: Array[String]) {
    def simpleCal: Unit = {
      val input = readLine().split(" ")
      val a: Int = input(0).toInt
      val b: Int = input(2).toInt
      val op: String = input(1)

      val calResult: Any = op match {
          case "+" => a + b
          case "-" => a - b
          case "*" => a * b
          case "/" => a / b
          case "?" => "end"
      }

      if(calResult != "end") {
        println(calResult)
        simpleCal
      }
    }

    simpleCal
  }
}