#include <bits/stdc++.h>
int main() {
  int num, i, s, rate[101], clist[101], cnum, tnum, max, min, f = 0;
  scanf("%d", &num);
  for (i = 0; i < num; i++) {
    scanf("%d", &rate[i]);
  }
  cnum = 0;
  tnum = 0;
  for (i = 0; i < num; i++) {
    printf("\nloop");
    clist[i] = rate[i] / 400;
    for (s = 0; s <= i; s++) {
      if (clist[i] > 8) {
        tnum++;
        break;
      }
      if (clist[i] == clist[s] && i != s) {
        f = 1;
      }
    }
    if (f != 1) {
      f = 0;
      printf("\ncount %d", i);
      cnum++;
    }
  }
  printf("\n%d %d", cnum, cnum + tnum);
  return 0;
}
