#include <iostream>
#include <string>
#include <algorithm>
#include <ctime>
#include <functional>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <cassert>
#include <bitset>
#include <list>
#include <cstdio>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <cmath>
#include <tuple>
#include <cassert>
#include <array>
#include <iomanip>

using namespace std;
using pii = pair<int, int>;
using ti = tuple<int, int, int>;

const double eps=1e-14;
const int mod = 1e9 + 7;
const int inf = ((1<<30));
const long long linf = (1LL<<60);

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int n;
    cin >> n;
    map<int, int> mp;
    for(int i=0; i<n; i++)
    {
        int rate;
        cin >> rate;
        if(rate<400) mp[0]++;
        else if(rate<800) mp[1]++;
        else if(rate<1200) mp[2]++;
        else if(rate<1600) mp[3]++;
        else if(rate<2000) mp[4]++;
        else if(rate<2400) mp[5]++;
        else if(rate<2800) mp[6]++;
        else if(rate<3200) mp[7]++;
        else mp[8]++;
    }
    int ans = 0:
    for(int i=0; i<8; i++) if(mp[i] > 0) ans++;
    ans = min(8, ans+mp[8]);
    cout << ans << endl;
    return 0;
}

