n,x,y=list(map(int,input().split()))
if x+y<=n:
    Min=0
    if x<=y:
        Max=x
    else:
        Max=y
else:
    Min=(x+y)-n
    if x<=y:
        Max=x
    else:
        Max=y
print("{} {}".format(Max,Min))

c50c84921085ce5a04892685e6419d7bc5f15cdd
<mask token>

<mask token>
if x + y <= n:
    Min = 0
    if x <= y:
        Max = x
    else:
        Max = y
else:
    Min = x + y - n
    if x <= y:
        Max = x
    else:
        Max = y
print('{} {}'.format(Max, Min))

n, x, y = list(map(int, input().split()))
if x + y <= n:
    Min = 0
    if x <= y:
        Max = x
    else:
        Max = y
else:
    Min = x + y - n
    if x <= y:
        Max = x
    else:
        Max = y
print('{} {}'.format(Max, Min))

n,x,y=list(map(int,input().split()))
if x+y<=n:
    Min=0
    if x<=y:
        Max=x
    else:
        Max=y
else:
    Min=(x+y)-n
    if x<=y:
        Max=x
    else:
        Max=y
print("{} {}".format(Max,Min))
