#include <bits/stdc++.h>
int main() {
  int N, a[100], rate, rate_num[9] = {0};
  scanf("%d", &N);
  int i;
  for (i = 0; i < N; i++) {
    scanf("%d", &a[i]);
    rate = a[i] / 400;
    rate_num[rate]++;
  }
  int col_num = 0;
  for (i = 0; i <= 7; i++) {
    if (rate_num[i] != 0) {
      col_num++;
    }
  }
  printf("%d %d", col_num, col_num + rate_num[8]);
}
