N = int(input())
A = list(map(int,input().split()))
color = [0] * 9
flag = False
for i in range(len(A)):
	flag = False
	for j in range(8):
		if 400 * j <= A[i] and A[i] <= 400 * (j + 1) - 1:
			color[j] = 1
			flag = True
	if flag == False:
		color[-1] += 1
print(sum(color[:-1]),sum(color))