#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, sum = 0;
  int rate[4800], rateFlg[9];
  cin >> N;
  for (int i = 0; i < N; i++) cin >> rate[i];
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < 8; j++) {
      if (rate[i] >= 400 * j && rate[i] < 400 * (j + 1)) {
        rateFlg[j] = 1;
      }
    }
    if (rate[i] >= 3200) {
      rateFlg[9]++;
    }
  }
  for (int i = 0; i < 8; i++) {
    sum += rateFlg[i];
  }
  cout << sum << " " << (sum + rateFlg[9]) << endl;
}
