#include <bits/stdc++.h>
int main(void) {
  int n, a[8], i, j, x, h, h2, 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 > 3199) {
      l++;
    } else {
      h = 400;
      h2 = 1;
      for (j = 0; j < 8; j++) {
        if (h2 <= x && x < h) {
          a[j] = 1;
          break;
        }
        h2 = h;
        h = h + 400;
      }
    }
  }
  x = 0;
  for (i = 0; i < 8; i++) {
    if (a[i] == 1) x++;
  }
  l = x + l;
  if (x == 0 && l > 0) x = 1;
  if (l > 8) l = 8;
  printf("%d %d\n", x, l);
  return 0;
}
