import qualified Data.ByteString.Char8 as B
import Data.Maybe
solve :: [Int] -> Int -> [Int]
solve [a,b] k
 | k < a = [a - k, b]
 | k < (a + b) = [0, b - (k - a)]
 | otherwise = [0,0]
main = do
 [a,b,k] <- map (fst . fromJust . (B.readInt)) . B.words <$> B.getLine
 putStr $ (\[x,y] -> (show x) ++ " " ++ (show y)) $ solve [a,b] k