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