#include <bits/stdc++.h>
int main() {
  int i, j, k, N, total, rate, color[9], target;
  total = 0;
  target = 0;
  for (i = 0; i < 9; i++) {
    color[i] = 0;
  }
  scanf("%d", &N);
  for (j = 0; j < N; j++) {
    scanf("%d", &rate);
    for (k = 0; k < 8; k++) {
      if (400 * k <= rate && rate <= 400 * (k + 1) - 1) {
        if (color[k] == 0) {
          color[k] = 1;
          total += 1;
          break;
        }
      }
    }
    if (3200 <= rate) {
      target += 1;
    }
  }
  printf("%d %d\n", total, target + total);
}
