#include <bits/stdc++.h>
int main(void) {
  int data[9] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199, 4800};
  int sta[9] = {0};
  int n, i, j, tmp, min = 0, max = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &tmp);
    if (tmp <= 399) {
      sta[0]++;
    }
    for (j = 0; j < 8; j++) {
      if ((tmp > data[j]) && (tmp <= data[j + 1])) {
        sta[j + 1]++;
      }
    }
  }
  for (i = 0; i < 8; i++) {
    if (sta[i] > 0) {
      min++;
    }
  }
  max = min + sta[8];
  printf("%d %d\n", min, max);
  return 0;
}
