#include <bits/stdc++.h>
int main(void) {
  int Num, alpha[Num];
  int color[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  int min = 0, max = 0;
  scanf("%d", &Num);
  for (int i = 0; i < Num; i++) {
    scanf("%d", &alpha[i]);
    if (alpha[i] >= 1 && alpha[i] <= 399) color[0]++;
    if (alpha[i] >= 400 && alpha[i] <= 799) color[1]++;
    if (alpha[i] >= 800 && alpha[i] <= 1199) color[2]++;
    if (alpha[i] >= 1200 && alpha[i] <= 1599) color[3]++;
    if (alpha[i] >= 1600 && alpha[i] <= 1999) color[4]++;
    if (alpha[i] >= 2000 && alpha[i] <= 2399) color[5]++;
    if (alpha[i] >= 2400 && alpha[i] <= 2799) color[6]++;
    if (alpha[i] >= 2800 && alpha[i] <= 3199) color[7]++;
    if (alpha[i] >= 3200) color[8]++;
  }
  for (int j = 0; j < 8; j++) {
    if (color[j] != 0) {
      max++;
      min++;
    }
  }
  printf("%d %d", min, max + color[8]);
  return 0;
}
