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

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

main = do
  [a, b, k] <- getIntList
  let a' = max 0 (a-k)
      k' = max 0 (k-a)
      b' = max 0 (b-k')
  putStrLn $ show a' ++ " " ++ show b'