n = int(input())

dic = [0 for i in range(9)]

arr = map(int,raw_input().split())

for i in range(n):
	if arr[i] < 3200:
		dic[arr[i]/400] += 1

	else :
		dic[8] += 1

minimum = 0
count =  0
for i in range(8):
	if dic[i] > 0:
		count += 1

if sum(dic[:8]) == 0:
	minimum = 1

else :
	minimum = count 


maximum = min(8,count + dic[8])

print minimum,maximum