n=io.read("*n","*l")
t={0,0,0,0,0,0,0,0,0}
for i=1,n do
    rate=io.read("*n")//400
    if rate>=8 then
        rate=8
        t[rate]=t[rate]+1
    else
        t[rate]=1
    end
end

colormin=0
colormax=0
for rate,v in pairs(t) do
    if rate~=8 then
        colormin=colormin+v
    end
    colormax=colormax+v
end
if colormin==0 then
    colormin=1
end
print(colormin,colormax)