#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[8];
  for (int i = 0; i < 8; i++) {
    a[i] = 0;
  }
  int n;
  cin >> n;
  int g = 0;
  int b[101];
  for (int i = 0; i < n; i++) {
    cin >> b[i];
    if (b[i] < 400) {
      a[0]++;
    } else if (b[i] >= 400 && b[i] <= 799) {
      a[1]++;
    } else if (b[i] >= 800 && b[i] <= 1199) {
      a[2]++;
    } else if (b[i] <= 1599 && b[i] >= 1200) {
      a[3]++;
    } else if (b[i] <= 1999 && b[i] >= 1600) {
      a[4]++;
    } else if (b[i] <= 2399 && b[i] >= 2000) {
      a[5]++;
    } else if (b[i] <= 2799 && b[i] >= 2400) {
      a[6]++;
    } else if (b[i] < 3200 && b[i] >= 2800) {
      a[7]++;
    } else {
      g++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (a[i] > 0) {
      g++;
    }
  }
  cout << g;
}
