#include <bits/stdc++.h>
int main(void) {
  int n;
  scanf("%d", &n);
  int a[n];
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  int iro[8] = {0}, max = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] / 400 < 8) {
      iro[a[i] / 400] = 1;
    } else {
      max++;
    }
  }
  int count = 0;
  for (int i = 0; i <= 7; i++) {
    if (iro[i] == 1) {
      count++;
    }
  }
  if (count == 0) {
    count++;
  }
  printf("%d %d", count, count + max);
  return 0;
}
