n=int(input())
a=list(map(int,input().split()))

minans=0
miniro=[0]*8
count=0

for i in range(n):
    tmp=a[i]//400
    if tmp<8 and miniro[tmp]==0:
        miniro[tmp]+=1
    elif tmp>=8:
        count+=1

print("{0} {1}".format(max(sum(miniro),1), min(count+sum(miniro), 8)))