import scala.util.control.Breaks
object Main extends App {
  val b = new Breaks
  b.breakable {
    while (true) {
      val Seq(stra, op, strb) = readLine().split(' ').toList

      if (op == "?") b.break

      val opfcn: Function2[Int, Int, Int] = op match {
        case "+" => _+_
        case "-" => _-_
        case "*" => _*_
        case "/" => _/_
      }

      println(opfcn(stra.toInt, strb.toInt))
    }
  }
}
