import Control.Monad
import Data.Maybe
import qualified Data.ByteString.Char8 as BS
import Data.List

readInt = fst . fromJust . BS.readInt
readIntList = map readInt . BS.words
getInt = readInt <$> BS.getLine
getIntList = readIntList <$> BS.getLine

main = do
    [a, b, k] <- getIntList
    print . unwords . map show $ solve a b k
    

solve a b k | a + b <= k = [0, 0]
            | a >= k = [(a - k), b]
            | a < k = [0, (a + b- k) ]