N = int(input())
ss = input().split()
a = [int(i) for i in ss]

l = [0] * 9
for i in a :
	l[min(i//400,8)] += 1

mn = 0
mx = 0
for i,j in enumerate(l) :
	if i < 8 :
		mn += min(1,j)
	else :
		mx = mn + j
print(mn, mx)
