N = int(input())
A = list(map(int, input().split()))
B = [0,0,0,0,0,0,0,0,0]
mi = 0
for i in range(len(A)):
    if A[i] < 400:
        B[0] =+ 1
    elif A[i] < 800:
        B[1] =+ 1
    elif A[i] < 1200:
        B[2] =+ 1
    elif A[i] < 1600:
        B[3] =+ 1
    elif A[i] < 2000:
        B[4] =+ 1
    elif A[i] < 2400:
        B[5] =+ 1
    elif A[i] < 2800:
        B[6] =+ 1
    elif A[i] < 3200:
        B[7] =+ 1
    else
        B[8] =+ 1
for t in range(len(B)-1):
    if B[t] > 0:
        mi = mi +1
ma = mi + B[-1]
print(ma + mi)