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