#include <bits/stdc++.h>
int main(void) {
  int n, a, b[9] = {0}, cnt = 0;
  for (scanf("%d", &n); n; n--) {
    scanf("%d", &a);
    b[a < 3200 ? a / 400 : 8]++;
  }
  for (n = 0; n < 8; n++) {
    cnt += b[n] != 0;
  }
  printf("%d %d", cnt, cnt + b[8]);
  return 0;
}
