n=int(input())
a=sorted(list(map(int,input().split())))

b=[0,0,0,0,0,0,0,0]
cnt=0

for i in range(n):
    if a[i]//400==0:
        b[0]+=1
    if a[i]//400==1:
        b[1]+=1
    if a[i]//400==2:
        b[2]+=1
    if a[i]//400==3:
        b[3]+=1
    if a[i]//400==4:
        b[4]+=1
    if a[i]//400==5:
        b[5]+=1
    if a[i]//400==6:
        b[6]+=1
    if a[i]//400==7:
        b[7]+=1
    if a[i]//400>=8:
        cnt+=1
    
print(len(b)-b.count(0),len(b)-b.count(0)+cnt)

    
    


            
        