#include <bits/stdc++.h>
int main(void) {
  int ai[100], c[9];
  int N, i, sum, max, min;
  scanf("%d", &N);
  for (i = 0; i < 9; i++) c[i] = 0;
  for (i = 0; i < N; i++) {
    scanf("%d", &ai[i]);
    if ((ai[i] / 400) < 8) {
      c[ai[i] / 400] = 1;
    } else {
      c[ai[9] / 400]++;
    }
  }
  for (i = 0; i < 8; i++) sum += c[i];
  min = sum;
  max = sum;
  if (c[ai[9]] > 0) {
    min++;
    max + c[ai[9]];
  }
  if (min > 8) min = 8;
  if (max > 8) max = 8;
}
