def color rate
	return -1 if rate>=3200
	return rate / 400
end

n = gets.to_i
a = gets.split.map(&:to_i).map{|r| color r}
free = a.count(-1)
colors = a.reject{|x|x==-1}.uniq.size
puts "#{[colors, 1].max} #{[colors+free, 8].min}"