participant = int(input())
rate = list(map(int, input().split()))
ratecolorCheck = [0] *8
maxColor, minColor = 0, 0
for i in range(participant):
  if 1 <= rate[i] and rate[i] <= 399:
    ratecolorCheck[0] = 1
  elif 400 <= rate[i] and rate[i] <= 799:
    ratecolorCheck[1] = 1
  elif 800 <= rate[i] and rate[i] <= 1199:
    ratecolorCheck[2] = 1
  elif 1200 <= rate[i] and rate[i] <= 1599:
    ratecolorCheck[3] = 1
  elif 1600 <= rate[i] and rate[i] <= 1999:
    ratecolorCheck[4] = 1
  elif 2000 <= rate[i] and rate[i] <= 2399:
    ratecolorCheck[5] = 1
  elif 2400 <= rate[i] and rate[i] <= 2799:
    ratecolorCheck[6] = 1
  elif 2800 <= rate[i] and rate[i] <= 3199:
    ratecolorCheck[7] = 1
  else:
    maxColor += 1
for i in range(8):
  if ratecolorCheck[i] == 1:
    minColor += 1
    maxColor += 1
if minColor == 0:
  minColor = maxColor
print(str(minColor) + " " + str(maxColor))