import Control.Monad

main :: IO ()
main = do
    [n, a, b] <- getInts
    putStrLn $ show (min a b) ++ " " ++ show (min 0 (a + b - n))

getLines :: Int -> IO [String]
getLines n = replicateM n getLine

getLinesInt :: Int -> IO [Int]
getLinesInt n = fmap read <$> getLines n

getInts :: IO [Int]
getInts = map (read :: String -> Int) . words <$> getLine