#include <bits/stdc++.h>
int main(void) {
  int n;
  scanf("%d", &n);
  int rate[9 + 5];
  for (int i = 0; i < 9; i++) rate[i] = 0;
  for (int i = 0; i < n; i++) {
    int a;
    scanf("%d", &a);
    if (a < 400)
      rate[0] = 1;
    else if (a < 800)
      rate[1] = 1;
    else if (a < 1200)
      rate[2] = 1;
    else if (a < 1600)
      rate[3] = 1;
    else if (a < 2000)
      rate[4] = 1;
    else if (a < 2400)
      rate[5] = 1;
    else if (a < 2800)
      rate[6] = 1;
    else if (a < 3200)
      rate[7] = 1;
    else
      rate[8] += 1;
  }
  int min = 0, add = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i] == 1)
      min += rate[i];
    else {
      if (rate[8] > 0) {
        add++;
        rate[8]--;
      }
    }
  }
  printf("%d %d\n", min, min + add);
  return 0;
}
