#include <bits/stdc++.h>
int main(void) {
  int n;
  scanf("%d", &n);
  int i;
  int rate[100], exist[8] = {}, num_highrate = 0;
  for (i = 0; i < n; i++) {
    scanf("%d", &rate[i]);
    if (rate[i] / 400 >= 8) {
      num_highrate++;
    } else {
      exist[rate[i] / 400] = 1;
    }
  }
  int ans = 0;
  for (i = 0; i < 8; i++) {
    ans += exist[i];
  }
  printf("%d %d\n", ans, ans + num_highrate);
  return 0;
}
