n = int(input())
a_list = list(map(int,input().split()))
color_vari = set()
over3200 = 0
for x in a_list:
	if x >= 3200:
		over3200 += 1

	else:
		color_vari.add(x // 400)

print(len(color_vari),len(color_vari)+over3200)
