#include <bits/stdc++.h>
int main() {
  int i, j, a, n, c = 0;
  int min = 0, max = 0, iroin[8], iroax[8];
  scanf("%d", &n);
  memset(iroin, 0, sizeof(iroin));
  memset(iroax, 0, sizeof(iroax));
  for (i = 0; i < n; i++) {
    scanf("%d", &a);
    if (a / 400 >= 8) {
      c++;
    } else {
      if (!iroax[a / 400]) {
        max++;
        iroax[a / 400] = 1;
      }
      if (!iroin[a / 400]) {
        min++;
        iroin[a / 400] = 1;
      }
    }
  }
  for (i = 0; i < c; i++) {
    for (j = 0; j < 8; j++)
      if (!iroax[j]) break;
    if (j != 8) {
      iroax[j] = 1;
      max++;
    }
    for (j = 0; j < 8; j++)
      if (!iroin[j]) break;
    if (j == 8) min++;
  }
  printf("%d %d\n", min, max);
  return 0;
}
