n = gets.to_i
h = gets.split.map(&:to_i)

count = 0

count = count + 1 if h.any?{|x| 1<=x && x<=399}
count = count + 1 if h.any?{|x| 400<=x && x<=799}
count = count + 1 if h.any?{|x| 800<=x && x<=1199}
count = count + 1 if h.any?{|x| 1200<=x && x<=1599}
count = count + 1 if h.any?{|x| 1600<=x && x<=1999}
count = count + 1 if h.any?{|x| 2000<=x && x<=2399}
count = count + 1 if h.any?{|x| 2400<=x && x<=2799}
count = count + 1 if h.any?{|x| 2800<=x && x<=3199}

count_stop = h.count{|x| x>=3200}

min = count == 0 ? 1 : count

max = count + count_stop
max = 8 if max >= 8

puts min.to_s + " " + max.to_s