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