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