solve :: Integer -> Integer -> Integer
solve a b k = 
	| a >= k = (a-k, b)
    | otherwise = (0, a + b - k)

main = do
    [a, b, k] <- map read . words <$> getLine
    putStrLn $ unwords $ map show $ solve a b k
