main = readAndDo

readAndDo = do
  line <- getLine
  let (a, op, b) = input line
  if op == "?" then return ()
  else do
    print $ solve op a b
    readAndDo

-- 入力
input :: String -> (Int, String, Int)
input = decode . words
  where
    decode [a,b,c] = (readInt a, b, readInt c)
    readInt = read :: String -> Int

-- 解答
solve op a b | op == "+" = a + b
             | op == "-" = a - b
             | op == "*" = a * b
             | op == "/" = a `div` b
             | otherwise = 0

