We conducted a survey on newspaper subscriptions. More specifically, we asked each of the N respondents the following two questions:    * Question 1: Are you subscribing to Newspaper X?   * Question 2: Are you subscribing to Newspaper Y?  As the result, A respondents answered "yes" to Question 1, and B respondents answered "yes" to Question 2.  What are the maximum possible number and the minimum possible number of respondents subscribing to both newspapers X and Y?  Write a program to answer this question.
n,a,b=map(int,input().split())
if n>=a+b:
    if a>b:
        print(a,0)
    else:
        print(b,0)
else:
    if a>b:
        print(a,a+b-n)
    else:
        print(b,a+b-n)
n,a,b=map(int,input().split())
if n>=a+b:
    if a>b:
        print(b,0)
    else:
        print(a,0)
else:
    if a>b:
        print(b,a+b-n)
    else:
        print(a,a+b-n)