Imports System
Module Module1

    Sub Main()

        Dim temp() As String = Split(Console.ReadLine)
        Dim n As Integer = temp(0)
        Dim a As Integer = temp(1)
        Dim b As Integer = temp(2)

        Dim max As Integer
        If a >= b Then
            max = b
        Else
            max = a
        End If
        Dim min As Integer
        If a + b >= n Then
            min = a + b - n
        Else
            min = 0
        End If

        Console.WriteLine(max & " " & min)

    End Sub

End Module
