#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
    int N;
    cin >> N;
    vector<int>a(N);
    set<int,int>Set;
    int ans = 0;
    for(int i = 0; i < N; i++) {
        cin >> a[i];
        if(a[i]/400 >= 8) {
            ans++;
        }
        else {
            Set.insert(a[i]/400);
        }
    }
    cout << ans+Set.size() << endl;
}