#include <bits/stdc++.h>
int main(void) {
  int max = 0;
  int min = 0;
  int choose = 0;
  int color[8] = {0, 0, 0, 0, 0, 0, 0, 0};
  int n;
  scanf("%d", &n);
  int rate[n];
  for (int i = 0; i < n; i++) {
    scanf("%d", rate + i);
  }
  for (int 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 {
      choose++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) {
      max++;
      min++;
    }
  }
  max += choose;
  if (max > 8) {
    max = 8;
  }
  printf("%d %d\n", min, max);
  return 0;
}
