object Main {
    import scala.annotation.tailrec

    def main(args: Array[String]) = {
        val sc = new java.util.Scanner(System.in)

        output(sc)
    }

    @tailrec
    def output(scanner: java.util.Scanner): Unit = {
        val a = scanner.nextInt
        val op = scanner.next
        val b = scanner.nextInt

        if( op != "?" ) {
            op match {
                case "+" => println(a+b)
                case "-" => println(a-b)
                case "*" => println(a*b)
                case "/" => println(a/b)
            }

            output(scanner)
        }
    }

}

