N = int(input())
A = list(map(int, input().split()))
color = [0]*9
for i in range(N):
  flag = 0
  for j in range(8):
    
    if 400*j <= A[i] <400*(j+1):
      color[j] += 1
      flag = 1
  if flag == 0:
    color[8] += 1
if not any(color[:8]):
  a, b = 1, min(color[8], 8)
else:
  a, b =sum(color[:8]), min(sum(color[:8])+color[8], 8)
