#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	
	
print '{} {}'.format(sum(colors), sum(colors)+top)