n=int(input())
a=list(map(int,input().split()))
r=[0]*8
f=0

for i in range(n):
    if(a[i]>=3200):
        f+=1
    else:
        r[a[i]//400]=1;

c=sum(r)

print(1 if(c==0) else c,end=" ")
print(f+c)
