main :: IO ()
main = do
  [a, b, k] <- map read . words <$> getLine
  if a - k < 0 then putStrLn ("0 " ++ if b - k + a < 0 then "0" else show(b - k + a))
               else putStrLn (show (k - a) ++ " " ++ show b)
