import Control.Monad
import Control.Applicative

sCal :: String -> String -> String -> Int
sCal a o b
  | o == "+"  = read a + read b
  | o == "-"  = read a - read b
  | o == "*"  = read a * read b
  | otherwise = read a `div` read b


main :: IO()
main = do
  (a:o:b:_) <- words <$> getLine
  unless (o == "?") $ do
    print $ sCal a o b
    main