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