#include <bits/stdc++.h>
int main() {
  int N;
  scanf("%d", &N);
  int colors[9] = {};
  for (int i = 0; i < N; i++) {
    int tmp;
    scanf("%d", &tmp);
    int color = tmp / 400;
    if (color > 8) color = 8;
    colors[color]++;
  }
  int nmin = 0;
  for (int i = 0; i <= 7; i++) {
    if (colors[i] > 0) nmin++;
  }
  if (nmin == 0 && colors[8] > 0) nmin = 1;
  int nmax = nmin + colors[8];
  printf("%d %d\n", nmin, nmax);
  return 0;
}
