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