import Text.Printf
main = do
  str<-getLine
  let [a,b,c]=words str
  if(b=="?")
  then return ()
  else do
    putStrLn $ show $ poyo (read a) b (read c)
    main
poyo::Int -> String -> Int -> Int
poyo x "+" y = x+y
poyo x "-" y = x-y
poyo x "*" y=x*y
poyo x "/" y=div x y