import Text.Printf
main = loop
loop :: IO ()
loop = do
    ln <- getLine
    let [a,op,b] = words ln
    case op of
        "+" -> print ((read a) + (read b)) >> loop
        "-" -> print ((read a) - (read b)) >> loop
        "*" -> print ((read a) * (read b)) >> loop
        "/" -> print ((read a) `div` (read b)) >> loop
        "?" -> return ()