#include <bits/stdc++.h>
int main(void) {
  int n, i;
  int c[9];
  memset(c, 0, sizeof(c));
  scanf("%d\n", &n);
  int s = 0;
  for (i = 0; i < n; i++) {
    int a;
    scanf("%d\n", &a);
    if (a >= 3200) {
      c[0]++;
    } else {
      int j = a / 400 + 1;
      if (c[j] == 0) {
        c[j] = 1;
        s++;
      }
    }
  }
  int min = s == 0 ? 1 : s;
  int max = s + c[0];
  if (max > 9) max = 9;
  printf("%d %d\n", min, max);
}
