n=int(input())
a=list(map(int,input().split()))
l=[0]*9
for i in a:
    for j in range(8):
        if 400*j<=i<400*(j+1):
            l[j]=1
        if i>=3200:
            l[-1]+=1

max_=sum(l)
    
if sum(l[:-1])==0:
    min_=1
else:
    min_=sum(l[:-1])
    
print(min_,max_)