object Main {
  def main(args: Array[String]): Unit = {
    Iterator.continually(io.StdIn.readLine())
      .map { line =>
        val arr = line.split(" ")
        (arr(0).toInt, arr(2).toInt, arr(1).charAt(0))
      }
      .takeWhile { case (_, _, op) => op != '?' }
      .foreach { case (a, b, op) =>
        val answer =
          op match {
            case '+' => a + b
            case '-' => a - b
            case '*' => a * b
            case '/' => a / b
            case _   => 0
          }
        println(answer)
      }
  }
}