#include <bits/stdc++.h>
int main(void) {
  int N;
  int a;
  char colorFlag[8];
  int overCount;
  int colorCount;
  int min, max;
  int i;
  for (i = 0; i < 8; i++) colorFlag[i] = 0;
  scanf("%d", &N);
  overCount = 0;
  for (i = 0; i < N; i++) {
    scanf("%d", &a);
    if (a >= 3200)
      overCount++;
    else
      colorFlag[a / 400] = 1;
  }
  colorCount = 0;
  for (i = 0; i < 8; i++) colorCount += colorFlag[i];
  min = colorCount;
  if (min == 0 && overCount > 0) min = 1;
  max = colorCount + overCount;
  if (max > 8) max = 8;
  printf("%d %d\n", min, max);
  return 0;
}
