#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  cin >> N;
  int temp, ind, cc, oc;
  cc = oc = 0;
  vector<bool> color(8, false);
  for (int i = 0; i < N; ++i) {
    cin >> temp;
    ind = temp / 400;
    if (ind > 7) {
      ++oc;
    } else if (!color[ind]) {
      color[ind] = true;
      ++cc;
    }
  }
  if (cc == 0) {
    ++cc;
  }
  cout << cc << " " << cc + oc << endl;
  return 0;
}
