output_description: Print the minimum possible number of different colors of the users, and the
  maximum possible number of different colors, with a space in between.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
      a_1 a_2 ... a_N
attempt: n = int(input())
  a = [0] * 9
  i = input().split()
  for x in range(n):
      y = int(i[x])
      if 1 <= y <= 399:
          a[0] += 1
      elif 400 <= y <= 799:
          a[1] += 1
      elif 800 <= y <= 1199:
          a[2] += 1
      elif 1200 <= y <= 1599:
          a[3] += 1
      elif 1600 <= y <= 1999:
          a[4] += 1
      elif 2000 <= y <= 2399:
          a[5] += 1
      elif 2400 <= y <= 2799:
          a[6] += 1
      elif 2800 <= y <= 3199:
          a[7] += 1
      else:
          a[8] += 1
  count = 0
  for x in range(8):
      if a[x] > 0:
          count += 1
  max = count + a[8]
  if max > 8:
      max = 8
  if count == 0 and a[8] > 0:
      count = 1
  print(count, max)
  
problem_description: Statement
  
  In AtCoder, a person who has participated in a contest receives a _color_ ,
  which corresponds to the person's rating as follows:
  
    * Rating 1-399 : gray
    * Rating 400-799 : brown
    * Rating 800-1199 : green
    * Rating 1200-1599 : cyan
    * Rating 1600-1999 : blue
    * Rating 2000-2399 : yellow
    * Rating 2400-2799 : orange
    * Rating 2800-3199 : red
  
  Other than the above, a person whose rating is 3200 or higher can freely pick
  his/her color, which can be one of the eight colors above or not.  
  Currently, there are N users who have participated in a contest in AtCoder,
  and the i-th user has a rating of a_i.  
  Find the minimum and maximum possible numbers of different colors of the
  users.
samples: [{"input": "4\n    2100 2500 2700 2700", "output": "2 2\n    \n\nThe user with rating 2100 is \"yellow\", and the others are \"orange\". There are\ntwo different colors.\n\n* * *"}, {"input": "5\n    1100 1900 2800 3200 3200", "output": "3 5\n    \n\nThe user with rating 1100 is \"green\", the user with rating 1900 is blue and\nthe user with rating 2800 is \"red\".  \nIf the fourth user picks \"red\", and the fifth user picks \"blue\", there are\nthree different colors. This is one possible scenario for the minimum number\nof colors.  \nIf the fourth user picks \"purple\", and the fifth user picks \"black\", there are\nfive different colors. This is one possible scenario for the maximum number of\ncolors.\n\n* * *"}, {"input": "20\n    800 810 820 830 840 850 860 870 880 890 900 910 920 930 940 950 960 970 980 990", "output": "1 1\n    \n\nAll the users are \"green\", and thus there is one color."}]