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