#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, res = 0;
  vector<int> col(8, 0);
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a;
    col[a / 400]++;
  }
  for (int i = 0; i < 7; ++i) res += !!(col[i]);
  cout << res + col[7] << "\n";
  return 0;
}
