n=int(input())
A=list(map(int,input().split()))
g=[0 for i in range(9)]
for a in A:
    for i in range(8):
        if 400*i<=a and a<=399+400*i:
            g[i]=1
    if a>=3200:
        g[8]+=1
if sum(g[0:7])>=1:
    print(sum(g)-g[8],sum(g))
else:
    print(g[8],1)