#include <bits/stdc++.h>
int dc = 100000;
int count[9];
int main() {
  if (0) printf("*** debug mode ***\n");
  int n, i;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    int a;
    scanf("%d", &a);
    a /= 400;
    if (a <= 7)
      count[a] |= 1;
    else
      count[8]++;
  }
  int s = 0;
  for (i = 0; i < 8; i++) {
    s += count[i];
  }
  printf("%d %d", s + (count[8] ? 1 : 0), s + count[8]);
  return 0;
}
