import Control.Applicative
import Text.Printf

main :: IO ()
main = do
  xs <- words <$> getLine
  if (xs !! 1) == "?" then return ()
    else do {
    putStrLn $ solve xs;
    main
    }
         
solve :: [String] -> String
solve ss
  | ope == "+" = show (a + b)
  | ope == "-" = show (a - b)
  | ope == "*" = show (a * b)
  | ope == "/" = show (a `div` b)
  where ope = ss !! 1
        a = read (ss !! 0)
        b = read (ss !! 2)