#include <bits/stdc++.h>
int compare_f(const void* a, const void* b) {
  return *((size_t*)a) < *((size_t*)b) ? -1 : 1;
}
static size_t comb(const size_t n, const size_t r) {
  size_t result = 1;
  for (size_t i = 0; i < r; i++) {
    result *= n - i;
    result /= i + 1;
  }
  return result;
}
static uint64_t gcd(uint64_t m, uint64_t n) {
  uint64_t temp;
  while (m % n != 0) {
    temp = n;
    n = m % n;
    m = temp;
  }
  return n;
}
int main(void) {
  size_t N;
  size_t count[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  scanf("%zu", &N);
  for (size_t i = 0; i < N; i++) {
    size_t a;
    scanf("%zu", &a);
    if (i < N - 1) {
      scanf(" ");
    }
    if (a < 3200) {
      count[a / 400]++;
    } else {
      count[8]++;
    }
  }
  size_t nonLegendCount = 0;
  for (size_t i = 0; i < 8; i++) {
    if (0 < count[i]) {
      nonLegendCount++;
    }
  }
  if (0 < nonLegendCount) {
    printf("%zu\n", nonLegendCount);
  } else {
    puts("1");
  }
  return 0;
}
