#include <bits/stdc++.h>
int main(void) {
  int ninzuu;
  int reto[4801];
  int i;
  int iro[5000] = {0};
  int saisyou = 0;
  int saidai;
  scanf("%d", &ninzuu);
  for (i = 0; i < ninzuu; ++i) {
    scanf("%d", &reto[i]);
    if (reto[i] >= 1 && reto[i] <= 399) {
      iro[1]++;
    } else if (reto[i] >= 400 && reto[i] <= 799) {
      iro[2]++;
    } else if (reto[i] >= 800 && reto[i] <= 1199) {
      iro[3]++;
    } else if (reto[i] >= 1200 && reto[i] <= 1599) {
      iro[4]++;
    } else if (reto[i] >= 1600 && reto[i] <= 1999) {
      iro[5]++;
    } else if (reto[i] >= 2000 && reto[i] <= 2399) {
      iro[6]++;
    } else if (reto[i] >= 2400 && reto[i] <= 2799) {
      iro[7]++;
    } else if (reto[i] >= 2800 && reto[i] <= 3199) {
      iro[8]++;
    } else if (reto[i] >= 3200) {
      iro[9]++;
    }
  }
  for (i = 1; i < 9; ++i) {
    if (iro[i] > 0) {
      saisyou++;
    }
  }
  saidai = saisyou + iro[9];
  printf("%d %d\n", saisyou, saidai);
  return (0);
}
