module Main where
import           Control.Applicative

main :: IO ()
main = do
    input <- words <$> getLine
    let [a, b, k] = map read input
    putStrLn $ solveSecond a b k

solveSecond :: Int -> Int -> Int -> String
solveSecond a b k = do
    let takahashi = a - k
    case takahashi of
        takahashi | takahashi > 0  -> (show takahashi) ++ " " ++ (show b)
                  | takahashi <= 0 -> "0 " ++ (show $ max 0 (b + takahashi))
