def smaller(x, y):
	if x < y: return x
	return y
N = int(input())
A = list(map(int, input().split()))
colorlist = [[1, 399]]
for i in range(1, 8):
	colorlist.append([400*i, 400*(i+1)-1])
ratelist = [False, False, False, False, False, False, False, False]
overcount = 0
for i in range(0, N):
	for j in range(0, 8):
		if colorlist[j][0] <= A[i] and A[i] <= colorlist[j][1]:
			ratelist[j] = True
			break
		if j == 7: overcount += 1
min = 0
for i in range(0, 8):
	if ratelist[i]: min += 1
max = smaller(min+overcount, 8)
print(str(min)+' '+str(max))