N = gets.to_i
as = gets.split.map(&:to_i)

hash = {}
free = 0
as.each do |a|
    if a < 3200
        hash[a/400] = true
    else
        free += 1
    end
end

mn = hash.length
puts "#{mn} #{mn + free}"