import scala.io.Source

object Main extends App {
  Source.stdin.getLines.toList.map(_.split(" ")).takeWhile(_(1) != "?")
    .map { x => (x(0).toInt, x(1), x(2).toInt) }
    .map { x => if (x._2 == "+") x._1 + x._3
                else if (x._2 == "-") x._1 - x._3
                else if (x._2 == "*") x._1 * x._3
                else if (x._2 == "/") x._1 / x._3 }
    .map(println)
}