#include <bits/stdc++.h>
void yes_or_no(char boolean) {
  if (boolean) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
}
int main() {
  int N, i;
  int score = 0;
  int tourist = 0;
  char exist[8];
  scanf("%d", &N);
  for (i = 0; i < 8; ++i) {
    exist[i] = 0;
  }
  for (i = 0; i < N; ++i) {
    scanf("%d", &score);
    if (score < 400 * 8)
      exist[score / 400] = 1;
    else {
      tourist++;
    }
  }
  int min = 0;
  for (i = 0; i < 8; ++i) {
    if (exist[i]) {
      min++;
    }
  }
  printf("%d %d\n", min, min + tourist);
  return 0;
}
