N = parse(Int, readline())
as = parse.([Int], split(readline()))

dic = Dict()
for i in 0:8
    dic[i] = 0
end
for i in 1:N
    if as[i] < 3200
        dic[div(as[i], 400)] += 1
    else
        dic[8] += 1
    end
end

c = 0
for i in 0:7
    if 0 < dic[i]
        c += 1
    end
end
cmin = max(c, 1)
cmax = min(c + dic[8], 8)

println(cmin, ' ', cmax)