#include <bits/stdc++.h>
int main(void) {
  int N, i, a, b, sum = 1, super = 0, j;
  int A[200];
  scanf("%d", &N);
  for (i = 0; i < N; i++) {
    scanf("%d", &A[i]);
  }
  for (i = 0; i < N; i++) {
    if (A[i] >= 1 && A[i] <= 399)
      A[i] = 1;
    else if (A[i] >= 400 && A[i] <= 799)
      A[i] = 2;
    else if (A[i] >= 800 && A[i] <= 1199)
      A[i] = 3;
    else if (A[i] >= 1200 && A[i] <= 1599)
      A[i] = 4;
    else if (A[i] >= 1600 && A[i] <= 1999)
      A[i] = 5;
    else if (A[i] >= 2000 && A[i] <= 2399)
      A[i] = 6;
    else if (A[i] >= 2400 && A[i] <= 2799)
      A[i] = 7;
    else if (A[i] >= 28000 && A[i] <= 3199)
      A[i] = 8;
    else
      A[i] = 9;
  }
  for (j = 1; j < N; j++) {
    if (A[j] == 8) super += 1;
    for (j = 1; j < N - i; j++) {
      if (A[i] != A[j]) sum += 1;
    }
  }
  printf("%d", sum);
  if (sum != 8 && super > 0) sum += 1;
  printf("%d\n", sum);
  return 0;
}
