n=int(input())
a=list(map(int,input().split()))
for i in range(n):
	if a[i]==0:
		a[i]=-1
	else:
		a[i]//=400
a.sort()
free=0
b=[]
cnt=0
for i in range(n):
	if a[i]<=7:
		b.append(a[i])
	else:
		free+=1
b=set(b)
for i in range(-1,8):
	if i in b:
		cnt+=1
x=max(cnt,1)
y=min(cnt+free,9)
print(x,y)