#include <bits/stdc++.h>
int main(void) {
  int color[8] = {0, 0, 0, 0, 0, 0, 0, 0};
  int n, i;
  int cameleon = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    int a;
    scanf("%d", &a);
    int c = a / 400;
    if (c > 7) {
      cameleon++;
    } else {
      color[c] = 1;
      ;
    }
  }
  int max, min = 0;
  for (i = 0; i < 8; i++) {
    min += color[i];
  }
  max = min + cameleon <= 8 ? min + cameleon : 8;
  printf("%d %d\n", min, max);
  return 0;
}
