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