N=int(input())
a=list(map(int,input().split()))
rate=[400,800,1200,1600,2000,2400,2800,3200]
a.sort()
answer=0
counter=0
i=0
j=0
while i<N:
    if a[i]>=rate[j]:
        j+=1
    else:
        answer+=1
        while i<N and a[i]<rate[j]:
            i+=1
        j+=1
    if i<N and j==8:
        counter+=N-i
        break
print(answer,answer+counter)