read n
read -a a
c=(`yes 0 | head -8`)
na=0
for x in ${a[@]}
do
    i=$((x/400))
    if((i<8))
    then
        c[$i]=1
    else
        na=$((na+1))
    fi
done
s=$((`echo ${c[@]} | tr ' ' '+'`))
echo $((s?s:1)) $((s+na<8?s+na:8))