import Control.Applicative

main :: IO ()
main = solve <$> f >>= putStrLn
  where
    f = map read <$> words <$> getLine

solve :: [Int] -> String
solve [a, b, k]
  | k >= a + b = "0 0"
  | k >= a = unwords $ map show $ [0, a + b - k]
  | otherwise = unwords $ map show $ [a - k, b]
