--AOJ Simple Calculator

import Control.Applicative

rInt :: String -> Int
rInt str = read str :: Int

simpleCalculator :: Int -> Int -> String -> Int
simpleCalculator x y "+" = x + y
simpleCalculator x y "-" = x - y
simpleCalculator x y "*" = x * y
simpleCalculator x y "/" = x `div` y
  
main :: IO ()
main = do
  lst <- pure words <*> getLine
  let x = rInt $ lst !! 0
      y = rInt $ lst !! 2
      op = lst !! 1  
  if op == "?"
    then return ()
    else do
    print $ simpleCalculator x y op
    main