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