N = int(input())
A = list(map(int, input().split()))
flg = [0 for _ in range(9)]

for i in range(N):
	tmp = A[i] // 400
	if tmp >= 9:
		tmp = 8
	flg[tmp] += 1

if flg[8] == 0:
	n = 9-flg.count(0)
	print(n, end = " ")
	print(n)
else:
	n = 8-flg.count(0)
	print(n, end = " ")
	print(min(n+flg[8], 8))

