import math
n = int(input())
a = list(map(int,input().split(" ")))
pts = [0]*10
for p in a:
	ca = int(math.floor(p/400))
	if ca>7:
		ca = 8
	pts[ca] +=1
	
min = 0
for p in pts:
	if p>0:
		min+=1

if pts[8]>0:
	min -=1
	max = min + pts[8]
else:
	max = min

print(str(min)+" "+str(max))