n = int(input())
A = list(map(int, input().split()))
c, d = 0, 0
for i in range(8):
  for j in A:
    if 400*i <= j < 400*(i+1):
      c += 1
      break
for j in A:
  if j >= 3200:
    d += 1
print(c, c+d)