solve :: Int -> Int -> Int -> String
solve n a b = show maxNum ++ " " ++ show minNum
  where maxNum = min a b
        minNum = max 0 $ (a + b) - n

main :: IO ()
main = do
  [n, a, b] <- map read . words <$> getLine
  putStrLn $ solve n a b