main :: IO ()
main = do
  [a, b, k] <- map read . words <$> getLine
  let s = solve2 b $ solve1 k a
  putStrLn $ show (fst s) ++ " " ++ show (snd s)

solve1 k a
  | (k - a) <= 0 = (0, a - k)
  | (k - a) > 0 = (k - a, 0)

solve2 b (k, a)
  | a > 0 = (a, b)
  | (k - b) <= 0 = (0, b - k)
  | (k - b) > 0 = (0, 0)