import qualified Data.Text as T
import qualified Data.Text.IO as T
import qualified Data.Text.Read as T

main :: IO ()
main = do
  (a : b : k : _) <- map unsafeSignedDecimal . T.words <$> T.getLine :: IO [Int]
  let
    a' = max (a - k) 0
    b' = max (b - max (k - a) 0) 0
  putStrLn $ show a' ++ " " ++ show b'

unsafeSignedDecimal :: T.Text -> Int
unsafeSignedDecimal s = case T.signed T.decimal s of
  Right (n, _) -> n
