#include <bits/stdc++.h>
int main(void) {
  int n;
  scanf("%d", &n);
  int rate[9 + 5] = {0};
  for (int i = 0; i < n; i++) {
    int a;
    scanf("%d", &a);
    if (a < 3200)
      rate[a / 400] = 1;
    else
      rate[8] += 1;
  }
  int min = 0;
  for (int i = 0; i < 8; i++) min += rate[i];
  printf("%d %d\n", min == 0 ? 0 : min, min + rate[8]);
  return 0;
}
