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