/**
  * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_C
  * ?¨???????
  * ???????????´??° a, b ??¨?????????????????? op ?????????????????§???a op b ????¨??????????????????°?????????????????????????????????
  * ????????????????????? op ??????"+"(???)???"-"(???)???"*"(???)???"/"(???)???????????¨??????
  * ???????????§????????????????????´??????????°???°?????\??????????????¨????????????????¨????????????¨????????????
  * ??\???????????°????????????????????????????§???????????????????????????????????????????????????¢????????\????????¨????????§??????
  * a op b
  * op ??? '?' ?????¨??? ??\?????????????????????????????????????????±???????????????????????£????????????????????????
  */
object Main {
  def main(args: Array[String]): Unit = {
    Iterator.continually(io.StdIn.readLine()).takeWhile(_ != null).map(_.split(" +"))
      .map { case Array(a, op, b) => (a.toInt, op, b.toInt) }
      .takeWhile { case (_, op, _) => op != "?" }
      .map {
        case (a, op, b) => op match {
          case "+" => a + b
          case "-" => a - b
          case "*" => a * b
          case "/" => a / b
        }
      }
      .foreach(println)
  }
}