object Main extends App {
  scala.io.Source.stdin.getLines.toList.map(_.split(" ")).takeWhile(_(1) != "?").map(x => (x(0).toInt, x(1), x(2).toInt)).map({
    case (a, "+", b) => a + b
    case (a, "-", b) => a - b
    case (a, "*", b) => a * b
    case (a, "/", b) => a / b
    case _ => -100100100
  }).map(println)
}