#include <bits/stdc++.h>
int main(void) {
  int N;
  int a;
  char colorFlag[8];
  int overCount;
  int colorCount;
  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];
  printf("%d %d\n", colorCount,
         (colorCount + overCount > 8 ? 8 : colorCount + overCount));
  return 0;
}
