#include <bits/stdc++.h>
int main(void) {
  int n;
  int a;
  int i;
  int ans[9] = {};
  int answer = 0;
  int min;
  int max;
  int x;
  scanf("%d", &n);
  for (i = 0; i < n; ++i) {
    scanf("%d", &a);
    x = a / 400;
    if (x > 7) {
      ans[8] = ans[8] + 1;
    } else {
      ans[x] = 1;
    }
  }
  answer =
      ans[0] + ans[1] + ans[2] + ans[3] + ans[4] + ans[5] + ans[6] + ans[7];
  if (answer > 0) {
    min = answer;
  } else {
    min = 1;
  }
  if (answer + ans[8] <= 9) {
    max = answer + ans[8];
  } else {
    max = 9;
  }
  printf("%d %d\n", min, max);
  return 0;
}
