import scala.io.StdIn.readLine

object Main extends App {

  val lines = Iterator.continually(readLine())
  val xs = {
    val xs = for {
      line           <- lines
      Array(a, op, b) = line.split(" ")
    } yield (a.toInt, op, b.toInt)

    xs.takeWhile {
      case (_, "?", _) => false
      case _           => true
    }
  }

  val convert: String => (Int, Int) => Int = {
    case "+" => _ + _
    case "-" => _ - _
    case "*" => _ * _
    case "/" => _ / _
  }

  val results = xs.map {
    case (a, op, b) => convert(op)(a, b)
  }

  results.foreach(println)
}

