N,A,B = list(map(int,input().split()))

print((min(A,B),max(A+B-N,0)))
N,A,B = list(map(int,input().split()))

print((min(A,B),max(0,A+B-N)))
N, A, B = list(map(int, input().split()))
print((min(A, B), max(A + B - N, 0)))

N, A, B = list(map(int, input().split()))
print((min(A, B), max(0, A + B - N)))

-print((min(A, B), max(A + B - N, 0))) +print((min(A, B), max(0, A + B - N)))