f x y z
  | x + y - z<= 0 = "0" ++ " " ++ "0"
  | x + y - z > 0 = if z - x >= 0 then "0" ++ " " ++  show(y-(z-x)) else show(x - z) ++ " "++ show(y) 
main = do
 [a,b,c] <- map read . words <$> getLine
 putStrLn $ f a b c