#include <bits/stdc++.h>
int main() {
  int N;
  scanf("%d", &N);
  int gurus = 0;
  int colors = 0;
  for (int i = 0; i < N; ++i) {
    int rate;
    scanf("%d", &rate);
    if (rate >= 3200)
      ++gurus;
    else
      colors |= 1 << (rate / 400);
  }
  if (colors == 0) {
    printf("1 1\n");
    return 0;
  }
  int cmin = 0;
  while (colors) {
    colors &= (colors - 1);
    ++cmin;
  }
  printf("%d %d\n", cmin, cmin + gurus);
  return 0;
}
