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