N=int(input())
A=[int(i) for i in input().split()]
col=[0 for i in range(8)]
fre=0
for a in A:
  if a<3200:
    col[a//400]+=1
  else:
    fre+=1
ans=0
# print(col)
for c in col:
  if c>0:
    ans+=1
ans+=fre
print(ans if ans<=8 else 8)