main = put =<< sol <$> get

get = fmap read . words <$> getLine

put = putStrLn . unwords . fmap show

sol [a,b,k] 
  | k==0      = [a,b]
  | a>0       = sol [a-c,b,k-c]
  | b>0       = sol [a,b-d,k-d]
  | otherwise = [a,b]
  where
  c = min a k
  d = min b k