#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n), b(9);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 3200) {
      b[8]++;
    } else {
      b[a[i] / 400]++;
    }
  }
  int ans = 0;
  for (int i = 0; i <= 7; i++) {
    if (b[i] != 0) {
      ans++;
    }
  }
  cout << min(8, ans + b[8]) << endl;
}
