object Main extends App {
  val scanner = new java.util.Scanner(System.in)

  val data = Iterator.continually {
    val a  = scanner.nextInt
    val op = scanner.next.head
    val c  = scanner.nextInt

    (a, op, c)
  }

  val outputs = data.takeWhile(_._2 != '?').map {
    case (a, '+', c) => a + c
    case (a, '-', c) => a - c
    case (a, '*', c) => a * c
    case (a, '/', c) => a / c
    case (_,   _, _) => throw new ArithmeticException()
  }

  outputs.foreach(println)
}