#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  vector<int> mark(9);
  for (int i = 0; i < N; i++) {
    cin >> a.at(i);
    int A = a.at(i);
    if (A / 400 < 8) {
      if (mark.at(A / 400) == 0) {
        mark.at(A / 400) = 1;
      }
    } else {
      mark.at(8) = mark.at(8) + 1;
    }
  }
  int sum = 0;
  for (int i = 0; i < 9; i++) {
    sum = sum + mark.at(i);
  }
  cout << min(sum, 8) << endl;
}
