calc :: String -> String -> String -> Int
calc op a b
  | op == "+" = toI a + toI b
  | op == "-" = toI a - toI b
  | op == "*" = toI a * toI b
  | op == "/" = floor $ toD a / toD b
  where
    toI n = (read n :: Int)
    toD n = (read n :: Double)

main = do
    line <- getLine
    let [a, op, b] = words line
    if op == "?" then
        return ()
    else do
        print $ calc op a b
        main
