#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
vector<long long> count(8, 0);
long long morethan = 0;
int main() {
  long long N;
  cin >> N;
  for (long long n = 0; n < N; n++) {
    long long a;
    cin >> a;
    if (a >= 3200)
      morethan++;
    else
      ::count[a / 400]++;
  }
  if (morethan == N)
    cout << 1 << endl;
  else {
    long long c = 0;
    for (long long n = 0; n < 8; n++) {
      if (::count[n] > 0) c++;
    }
    cout << c << endl;
  }
  return 0;
}
