n=int(input())
a=[int(i) for i in input().split()]
num=[0 for i in range(14)]
for rate in a:
	num[int(rate/400)]+=1

ans=0
for i in range(8):
	if num[i]>0:
		ans+=1
over=0
for i in range(8,14):
	over+=num[i]
print(max(ans,1),end="")
print(" ",end="")
print(min(ans+over,8))
