main :: IO ()
main = do
  [a, b, k] <- map read . words <$> getLine
  putStrLn $ unwords $ map show $ solve a b k

solve :: Int -> Int -> Int -> [Int]
solve 0 b k
  | b > k     = [0, b - k]
  | otherwise = [0, 0]
solve a b k
  | a > k     = [a - k, b]
  | otherwise = solve 0 b (k - a)