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