import Text.Printf

ans :: [String] -> Int
ans (a:op:b:_)
  | op == "+" = (read a) + (read b)
  | op == "-" = (read a) - (read b)
  | op == "*" = (read a) * (read b)
  | op == "/" = (read a) `div` (read b)

main = do
  c <- getContents
  let i = map words $ lines c
      a = map ans i
  mapM_ (putStrLn . show) a