import Control.Applicative
import Control.Monad

calc :: [Char] -> Int -> Int -> Int
calc op a b = case op of
  "+" -> a + b
  "-" -> a - b
  "*" -> a * b
  "/" -> a `div` b

main = do
  [a, op, b] <- words <$> getLine
  when (op /= "?") $ print (calc op (read a :: Int) (read b :: Int)) >> main