output_description: Print the maximum possible number and the minimum possible number of
  respondents subscribing to both newspapers, in this order, with a space in
  between.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N A B
attempt: # 新聞Xを購読しているか？ A
  # 「はい」A人
  
  # 新聞Yを購読しているか？ B
  # 「はい」B人
  
  # 1 <= N < 100
  # 0 <= A <= N
  # 0 <= B <= N
  
  # 標準入力
  inputstr = input()
  inputary = inputstr.split(" ")
  print(inputary)
  N = int(inputary[0])
  A = int(inputary[1])
  B = int(inputary[2])
  
  suball = N - A - B
  if suball > 0:
      suball = 0
  else:
      suball = abs(suball)
  
  if A >= B:
      print(str(B) + " " + str(suball))
  elif A < B:
      print(str(A) + " " + str(suball))
  
problem_description: Statement
  
  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.
samples: [{"input": "10 3 5", "output": "3 0\n    \n\nIn this sample, out of the 10 respondents, 3 answered they are subscribing to\nNewspaper X, and 5 answered they are subscribing to Newspaper Y.\n\nHere, the number of respondents subscribing to both newspapers is at most 3\nand at least 0.\n\n* * *"}, {"input": "10 7 5", "output": "5 2\n    \n\nIn this sample, out of the 10 respondents, 7 answered they are subscribing to\nNewspaper X, and 5 answered they are subscribing to Newspaper Y.\n\nHere, the number of respondents subscribing to both newspapers is at most 5\nand at least 2.\n\n* * *"}, {"input": "100 100 100", "output": "100 100"}]