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