import Data.List
import Data.List.Split
import Data.Char (isSpace)

trim :: String -> String
trim = f . f
  where
    f = reverse . dropWhile isSpace

calc :: Int -> String -> Int -> Int
calc a op b
  | op == "+" = a + b
  | op == "-" = a - b
  | op == "*" = a * b
  | op == "/" = a `div` b
  | otherwise = undefined

main :: IO ()
main = do
  s <- getContents
  let xs = splitOn "\n" $ trim s
  putStrLn $ intercalate "\n" [show (calc x op y) |
                               t <- xs,
                               let [a, op, b] = words t
                                   x = read a
                                   y = read b,
                               op /= "?"]