N=int(input())
A=list(map(int, input().split()))
if max(A)>=3200:
  print(8)
  exit()
  
def judge(n):
  return n//400

rate=[0]*8
for a in A:
  rate[judge(a)]+=1
  
count=0
for r in rate:
  if r!=0:
    count+=1
print(count)