import scala.io.Source

object Main extends App {
  val lines = Source.stdin.getLines.map { s => s.split(" ").toList }.toList.init
  // val lines = Source.fromFile(args(0)).getLines.map { s => s.split(" ").toList }.toList.init

  for {
    line <- lines
    } yield { if (line.exists(s => s == "+")) println(line(0).toInt + line(2).toInt)
              else if (line.exists(s => s == "-")) println(line(0).toInt - line(2).toInt)
              else if (line.exists(s => s == "*")) println(line(0).toInt * line(2).toInt)
              else if (line.exists(s => s == "/")) println(line(0).toInt / line(2).toInt)
              else println("No match")
    }
}