n=int(input())
a=list(map(int,input().split()))
l=[0]*9
for i in a:
    if i<3200:
        l[i//400]+=1
    else:
        l[8]+=1
if l[8]==0:
    print(sum(l[:8]),sum(l[:8]))
else:
    print(sum(l[:8]),sum(l))