gets
as = gets.split.map(&:to_i)
rates = Array.new(8, nil)
free = 0
 
as.each do |a|
  case a
  when 1..399;    rates[0] = 1
  when 400..799;  rates[1] = 1
  when 800..1199; rates[2] = 1
  when 1200..1599;rates[3] = 1
  when 1600..1999;rates[4] = 1
  when 2000..2399;rates[5] = 1
  when 2400..2799;rates[6] = 1
  when 2800..3199;rates[7] = 1
  else;           free += 1
  end
end
 
puts [rates.compact.size, rates.compact.size + free].join(' ')