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