n = int(input())
l = list(map(int,input().split()))
color = [0]*10
ans = 0
for i in range(n):
    if l[i] >= 3200:
        ans += 1
    else:
        color[int(l[i]/400)] += 1
for i in color:
    if i > 0:
        ans += 1
print(ans)