colors=[0]*8
n=int(input())
a=list(map(int,input().split()))
wild=0
for i in range(n):
  index=(a[i]+1)//400
  if index>7:
    wild+=1
  else:
    colors[index]=1
ans1=sum(colors)
ans2=sum(colors)
ans1+=wild
if ans2==0 and wild>0:
  ans2=1
print(ans2,' ',ans1)