#include <bits/stdc++.h>
int main(void) {
  int N;
  scanf("%d", &N);
  int range[8] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  int color[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  for (int i = 0; i < N; i++) {
    int a;
    scanf("%d", &a);
    for (int j = 0; j < 8; j++) {
      if (a < range[j]) {
        color[j]++;
        break;
      }
    }
    if (a >= 3200) color[8]++;
  }
  int min = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) min++;
  }
  int max = min + ((8 - min) < (color[8]) ? (8 - min) : (color[8]));
  printf("%d %d\n", min, max);
  return 0;
}
