import Data.Foldable (for_)
import Data.Functor ((<$>))

main = do
  xs <- takeWhile (\[_, op, _] -> op /= "?") . map words . lines <$> getContents
  for_ xs $ \[a', op, b'] ->
    let a = read a' :: Int
        b = read b' :: Int
    in case op of
      "+" -> print $ a + b
      "-" -> print $ a - b
      "*" -> print $ a * b
      "/" -> print $ a `div` b

