#include <bits/stdc++.h>
int main() {
  int k = 0, o = 0, sum = 0, a[8], yo = 0, max = 0, min = 10;
  scanf("%d", &k);
  for (int i = 0; i < k; i++) {
    scanf("%d", &o);
    for (int j = 0; j < 8; j++) {
      if (400 * j <= o < 400 * (j + 1)) {
        if (a[j] == 0) {
          a[j] = 1;
        }
      } else {
        yo = yo + 1;
      }
    }
  }
  for (int l = 0; l < k; l++) {
    sum = sum + a[l];
  }
  max = sum + yo;
  min = sum;
  if (max > 8) {
    max = 8;
  }
  printf("%d%d", min, max);
  return 0;
}
