#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b[120], c[10], d;
  cin >> a;
  for (int i = 0; i < a; i++) cin >> b[i];
  for (int i = 0; i < a; i++) {
    if (b[i] < 400) c[0]++;
    if (b[i] < 800) c[1]++;
    if (b[i] < 1200) c[2]++;
    if (b[i] < 1600) c[3]++;
    if (b[i] < 2000) c[4]++;
    if (b[i] < 2400) c[5]++;
    if (b[i] < 2800) c[6]++;
    if (b[i] < 3200) c[7]++;
    if (3200 <= b[i]) c[8]++;
  }
  for (int i = 0; i < 8; i++) {
    if (c[i] > 0) {
      d++;
    }
  }
  cout << d << "" << d + c[8] << endl;
}
