#include <bits/stdc++.h>
int main(void) {
  int color[9] = {0};
  int num;
  scanf("%d", &num);
  int i;
  for (i = 0; i < num; i++) {
    int tmp;
    scanf("%d", &tmp);
    if (tmp > 3200) tmp = 3200;
    color[tmp / 400]++;
  }
  int min = 0;
  for (i = 0; i < 8; i++) {
    if (color[i] > 0) min++;
  }
  int max = (min + color[8] < 7) ? min + color[8] : 7;
  if (min == 0) min = 1;
  printf("%d %d", min, max);
  return 0;
}
