#!/usr/bin/python

n = input()
a = [int(i) for i in input().split()]
color = [0, 0, 0, 0, 0, 0, 0, 0]
tr = 0

for i in a:
  if i < 3200:
    color[int(i / 400)] += 1
  else:
    tr += 1

count = 0
for i in color:
  if i != 0:
    count += 1

if count > 0:
  print(str(count) + " ", end='')
else:
  print(str(1))

if count + tr < 8:
  print(str(count + tr))
else:
  print(str(8))