#include <bits/stdc++.h>
int main() {
  int a = 0, b = 0, n, s;
  int f[8] = {0, 0, 0, 0, 0, 0, 0, 0};
  scanf("%d", &n);
  while (n--) {
    scanf("%d", &s);
    for (int i = 1; i <= 8; i++) {
      if (s < i * 400 && s >= (i - 1) * 400 && f[i - 1] == 0) a++, f[i - 1]++;
    }
    if (s >= 3200) b++;
  }
  if (b > 8) b = 8;
  if (a == 0)
    printf("1 %d\n", b);
  else {
    if (a + b > 8) b = 8 - a;
    printf("%d %d\n", a, a + b);
    return 0;
  }
}
