#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> kind(9);
  int n;
  cin >> n;
  vector<int> a(n);
  int i;
  for (i = 0; i < n; i++) {
    cin >> a.at(i);
    if (a.at(i) > 3200) {
      a.at(i) = 3200;
    }
  }
  for (i = 0; i < n; i++) {
    kind.at(a.at(i) / 400)++;
  }
  int count = 0;
  for (i = 0; i < 8; i++) {
    if (kind.at(i) > 0) {
      count++;
    }
  }
  if (kind.at(8) == 0 || (count == 8 && (kind.at(8) > 0))) {
    cout << count << " " << count << endl;
  } else {
    cout << count << " " << min(8, count + kind.at(8)) << endl;
  }
}
