#include <bits/stdc++.h>
using namespace std;
long c[9];
int main() {
  memset(c, 0, sizeof(c));
  long n;
  cin >> n;
  for (long i = 0; i < n; i++) {
    long x;
    scanf("%d", &x);
    c[max(x / 400, (long)8)]++;
  }
  long a = 0;
  for (long i = 0; i < 8; i++)
    if (c[i] > 0) a++;
  cout << min((long)8, a + c[8]);
  return 0;
}
