n=int(raw_input())
a=map(int,raw_input().split())
b=[0]*9
for i in a:
	c=i//400
	if c>=8:b[8]+=1
	else:b[c]=b[c] or 1

if sum(b[:-1])==0 and b[-1]!=0:d=1
else:d=sum(b[:-1])
if sum(b)>=8:e=8
else:e=sum(b)
print d,e