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