#include <bits/stdc++.h>
int main() {
  int n, a, i, j;
  int x = 0;
  int y[8] = {0, 0, 0, 0, 0, 0, 0, 0};
  int z = 0;
  int min = 0;
  int max = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a);
    x = a / 400;
    if (x < 8) {
      y[x] += 1;
    } else {
      z += 1;
    }
  }
  for (j = 0; j < 8; j++) {
    if (y[j] > 0) {
      min += 1;
    }
  }
  if (min == 0) {
    min = 1;
  }
  max = min + z;
  printf("%d %d", min, max);
  return 0;
}
