#coding: utf-8
N = int(raw_input())
rates = map(int, raw_input().split(' '))

colors = [0 for _ in range(8)]
top = 0
for r in rates:
	mod = r / 400
	if mod < 8:
		colors[mod] = 1
	else:
		top += 1	

minnum = sum(colors)
maxnum = minnum + top
if minnum == 0:
	minnum = 1
print '{} {}'.format(minnum, maxnum)