import scala.io.StdIn.{readInt,readLine}

object Main {
  def calc(n:Int):Int = {
    val op = readLine
    op match {
      case "+" => calc(n+readInt)
      case "-" => calc(n-readInt)
      case "*" => calc(n*readInt)
      case "/" => calc(n/readInt)
      case _ => n
    }
  }

  def main(args:Array[String]) = println(calc(readInt))
}