import Data.Functor ((<$>))

main :: IO ()
main = do
  [a,op,b] <- words <$> getLine
  if op == "?"
    then return ()
    else do
      print $ case op of
        "+" -> read a + read b
        "-" -> read a - read b
        "*" -> read a * read b
        "/" -> read a `div` read b
      main

