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

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