N=input()
N=int(N)
a=input()
a=a.split()
score=[0]*8
legend=0
a=[int(item) for item in a]
for i in range(N):
    p=int(a[i]/400)
    if p >= 8:
        legend+=1
    else:
        score[p]=1
   
print(str(score.count(1))+" "+str(score.count(1)+legend))
