#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int arb = 0;
  bool color[8] = {};
  for (int i = 0; i < (n); i++) {
    int a;
    cin >> a;
    if (a < 400) color[0] = true;
    if (a < 800) color[1] = true;
    if (a < 1200) color[2] = true;
    if (a < 1600) color[3] = true;
    if (a < 2000) color[4] = true;
    if (a < 2400) color[5] = true;
    if (a < 2800) color[6] = true;
    if (a < 3200)
      color[7] = true;
    else
      arb++;
  }
  int c = count(color, color + 8, true);
  cout << c << c + arb << endl;
  return 0;
}
