#!/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 and color[int(i/400)] == 0:
    color[int(i / 400)] = 1
  elif i >= 3200:
    tr += 1

color_kind = 0
for i in color:
  if i == 1:
    color_kind += 1

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

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