import Control.Applicative

main = do
  [a, op, b] <- words <$> getLine

  if op == "?" then
    return ()
  else do
    print $ calc a op b
    main

calc :: String->String->String->Int

calc a op b
  | op == "+"   = (read a :: Int) + (read b :: Int)
  | op == "-"   = (read a :: Int) - (read b :: Int)
  | op == "*"   = (read a :: Int) * (read b :: Int)
  | op == "/"   = (read a :: Int) `quot` (read b :: Int)
  | otherwise   = 0 