#include <bits/stdc++.h>
int main() {
  int n = 0;
  int rate[100] = {};
  int color[8] = {};
  int colors = 0;
  int freecolor = 0;
  int i = 0;
  int mincolor = 0;
  int maxcolor = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &rate[i]);
  }
  for (i = 0; i < n; i++) {
    if (rate[i] < 400) {
      color[0]++;
    } else if (rate[i] < 800) {
      color[1]++;
    } else if (rate[i] < 1200) {
      color[2]++;
    } else if (rate[i] < 1600) {
      color[3]++;
    } else if (rate[i] < 2000) {
      color[4]++;
    } else if (rate[i] < 2400) {
      color[5]++;
    } else if (rate[i] < 2800) {
      color[6]++;
    } else if (rate[i] < 3200) {
      color[7]++;
    } else {
      freecolor++;
    }
  }
  for (i = 0; i < 8; i++) {
    if (color[i] != 0) {
      colors++;
    }
  }
  if (colors == 0) {
    mincolor = 1;
  } else {
    mincolor = colors;
  }
  if (colors + freecolor >= 8) {
    maxcolor = 8;
  } else {
    maxcolor = colors + freecolor;
  }
  printf("%d %d", mincolor, maxcolor);
  return 0;
}
