n = int(input())
a = list(map(int,input().split()))

c = [0 for _ in range(9)]
for ai in a:
  for i in range(8):
    if ai <= i*400+399:
      c[i] += 1
      break
  if ai >= 3200:
    c[8] += 1
mn = 0
for i in range(8):
  if c[i] > 0:
    mn += 1
mx = min(mn+c[8],8)
if mn == 0:
  mn = 1
print(mn,mx)