n=int(input())
a=[int(i) for i in input().split()]
num=[False for i in range(8)]

ans=0
over=0
for rate in a:
	if rate<3200:
		num[int(rate/400)]=True
	else:
		over+=1
for flag in num:
	if flag:
		ans+=1

print(max(ans,1),end="")
print(" ",end="")
print(min(ans+over,8))
