#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  int i;
  int count = 0;
  int count_all = 0;
  vector<int> b(8);
  for (i = 0; i < 8; i++) {
    b[i] = 0;
  }
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a.begin(), a.end());
  for (i = 0; i < n; i++) {
    if (a[i] <= 399 && b[0] == 0) {
      count++;
      b[0] = 1;
      if (a[i] <= 799 && b[1] == 0) {
        count++;
        b[1] = 1;
        if (a[i] <= 1199 && b[2] == 0) {
          count++;
          b[2] = 1;
          if (a[i] <= 1599 && b[3] == 0) {
            count++;
            b[3] = 1;
            if (a[i] <= 1999 && b[4] == 0) {
              count++;
              b[4] = 1;
              if (a[i] <= 2399 && b[5] == 0) {
                count++;
                b[5] = 1;
                if (a[i] <= 2799 && b[6] == 0) {
                  count++;
                  b[6] = 1;
                  if (a[i] <= 3199) {
                    count++;
                    b[7] = 1;
                  } else if (count_all <= 8 - count) {
                    count_all++;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  cout << count + count_all;
}
