#include <bits/stdc++.h>
using namespace std;
int n, a[100], hai, tya, mido, mizu, ao, ki, dai, aka, jiyuu, kakutei, saidai;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    switch (a[i] / 400) {
      case 0:
        hai++;
        break;
      case 1:
        tya++;
        break;
      case 2:
        mido++;
        break;
      case 3:
        mizu++;
        break;
      case 4:
        ao++;
        break;
      case 5:
        ki++;
        break;
      case 6:
        dai++;
        break;
      case 7:
        aka++;
        break;
      default:
        jiyuu++;
        break;
    }
  }
  if (hai != 0) kakutei++;
  if (tya != 0) kakutei++;
  if (mido != 0) kakutei++;
  if (mizu != 0) kakutei++;
  if (ao != 0) kakutei++;
  if (ki != 0) kakutei++;
  if (dai != 0) kakutei++;
  if (aka != 0) kakutei++;
  saidai = kakutei + jiyuu;
  if (kakutei == 0) kakutei = 1;
  if (saidai > 8) saidai = 8;
  cout << kakutei << " " << saidai << endl;
  return 0;
}
