main = do
  [a,b,k] <- map read . words <$> getLine :: IO [Int]
  let (i,j) = solve a b k
  putStrLn $ show i ++ " " ++ show j
  
solve :: Int -> Int -> Int -> (Int,Int)
solve a b k
  | a < k = (0, max 0 (b-(k-a)))
  | a > k = (a-k, b)
  | otherwise = (0,b)