N=int(input())
gray=0
brown=0
green=0
cyan=0
blue=0
yellow=0
orange=0
red=0
qq=0
minimo=0
maximo=0
qtdCores=0
while N>0:
    a=int(input())
    if a>=1 and a<=399:
        gray+=1
    elif a>=400 and a<=799:
        brown+=1
    elif a>=800 and a<=1199:
        green+=1
    elif a>=1200 and a<=1599:
        cyan+=1
    elif a>=1600 and a<=1999:
        blue+=1
    elif a>=2000 and a<=2399:
        yellow+=1
    elif a>=2400 and a<=2799:
        orange+=1
    elif a>=2800 and a<=3199:
        red+=1
    else:
        qq+=1
    N=N-1
if gray>0:
    qtdCores+=1
if brown>0:
    qtdCores+=1
if green > 0:
    qtdCores+=1
if cyan > 0:
    qtdCores+=1
if blue>0:
    qtdCores+=1
if yellow > 0:
    qtdCores+=1
if orange > 0:
    qtdCores+=1
if red > 0:
    qtdCores+=1
if qq==0:
    minimo=qtdCores
    maximo=qtdCores
else:
    minimo=qtdCores
    maximo=qtdCores+qq
print(minimo,maximo)