n = int(input())
a = [int(i) for i in input().split(" ")]

d = [0, 0, 0, 0, 0, 0, 0, 0, 0]


for i in a:
  if i < 400:
    d[0] = 1
    continue
  elif i < 800:
    d[1] = 1
  elif i < 1200:
    d[2] = 1
  elif i < 1600:
    d[3] = 1
  elif i < 2000:
    d[4] = 1
  elif i < 2400:
    d[5] = 1
  elif i < 2800:
    d[6] = 1
  elif i < 3200:
    d[7] = 1
  else:
    d[8] += 1
    
min = sum(d[:-1])
max = sum(d)
print(min, max)
