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