
n = int(input())
rate_list = [ int(v) for v in input().split() ]
color_list = [0 for i in range(8)]
free = 0
for i in rate_list:
	if  i < 3200:
		color_list[i//400] += 1
	else:
		free += 1


min_color = 8 - color_list.count(0)
max_color = free+min_color
print(min_color,max_color)