#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, rate, ansm = 0, ansM, freeColor = 0;
  cin >> n;
  bool A[8] = {};
  for (int i = 0; i < n; i++) {
    cin >> rate;
    if (rate < 3200) {
      A[rate / 400] = true;
    } else {
      freeColor++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (A[i] == true) {
      ansm++;
    }
  }
  ansM = ansm + freeColor;
  if (ansM > 8) {
    ansM = 8;
  }
  cout << ansm << " " << ansM << endl;
  return 0;
}
