#include <bits/stdc++.h>
int v1[] = {1, 400, 800, 1200, 1600, 2000, 2400, 2800};
int v2[] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199};
int vf[100];
int main() {
  FILE *fi, *fout;
  int i, n, j;
  fi = stdin;
  fout = stdout;
  fscanf(fi, "%d", &n);
  int cnt = 0, ans = 0;
  for (i = 1; i <= n; i++) {
    int x;
    fscanf(fi, "%d", &x);
    if (x > 3199) cnt++;
    for (j = 0; j < 8; j++)
      if (v1[j] <= x && x <= v2[j]) {
        vf[j]++;
        break;
      }
  }
  for (j = 0; j < 8; j++)
    if (vf[j] > 0) ans++;
  if (ans == 0 && cnt > 0)
    fprintf(fout, "1 %d\n", std::min(ans + cnt, 8));
  else
    fprintf(fout, "%d %d\n", ans, std::min(ans + cnt, 8));
}
