rank = Array.new(9,0)
n = gets().to_i
a = gets().split(" ")

for i in 0..n-1
	b = a[i].to_i
	if 1 <  b && b < 399
		rank[0] += 1
	elsif 400 <=  b && b <= 799
		rank[1] += 1
	elsif 800 <=  b && b <= 1199
		rank[2] += 1
	elsif 1200 <=  b && b <= 1599
		rank[3] += 1
	elsif 1600 <=  b && b <= 1999
		rank[4] += 1
	elsif 2000 <=  b && b <= 2399
		rank[5] += 1
	elsif 2400 <=  b && b <= 2799
		rank[6] += 1
	elsif 2800 <=  b && b <= 3199
		rank[7] += 1
	elsif 3200 <=  b
		rank[8] += 1
	end
end

max = 0
min = 0

for j in 0..7
	if rank[j] > 0
		max += 1
		min += 1
	end
end
max = max + rank[8]

print(min, " ", max, "\n")