n=int(input())
a=list(map(int,input().split()))
nl=[0 for i in range(8)]
c=0
for i in range(len(a)):
    if a[i]>=3200:
        c+=1
    for j in range(8):
        if 400*j<=a[i] and a[i]<400*(j+1):
            nl[j]=1
if sum(nl)==0:
    m=c
else:
    m=sum(nl)
print(m,sum(nl)+c)