#include <bits/stdc++.h>
int main(void) {
  int n, rate, c[9] = {0};
  int min = 0, max = 0;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &rate);
    c[rate / 400]++;
  }
  for (int i = 0; i < 8; i++) {
    if (c[i] > 0) min++;
  }
  max = min + c[8];
  if (min == 0) min++;
  if (max > 8) max = 8;
  printf("%d %d", min, max);
  return 0;
}
