n = int(input())
a = tuple(map(int, input().split(" ")))

color_types = [False]*7
pro_count = 0
if a < 3200:
	color_types[a//400] = True
else:
	pro_count += 1
print(min(8, sum(color_types)+pro_count))