#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[100], b[9] = {0};
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    b[min(a[i] / 400, 8)]++;
  }
  int color = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i]) {
      color++;
    }
  }
  int niji = b[8];
  if (!niji) {
    cout << color << " " << color << endl;
  } else if (!color) {
    cout << "1 " << min(niji, 8) << endl;
  } else {
    cout << color << " " << min(color + niji, 8) << endl;
  }
  return 0;
}
