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: N = int(input())
  A = list(input())
  B = list(input())
  C = list(input())
  litter = []
  c = 0
  for s in range(N):
      c += [0, 0, 1, 2][len(set([A[s], B[s], C[s]]))]
  print(c)
  
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"}]