n = gets.to_i
a = gets.split.map(&:to_i)
a_c =  a.count {|a_i|a_i>=3200}
a.select! { |a_i| a_i < 3200 }
types =  (a.group_by { |a_i| a_i / 400 }).length
puts "#{types} #{types + (a_c == 0 ? 0 : a_c)}"