#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> rate = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  vector<bool> c(8, false);
  int over = 0;
  int n;
  cin >> n;
  int ai;
  for (int i = 0; i < n; i++) {
    cin >> ai;
    for (int j = 0; j < 8; j++) {
      if (ai < rate.at(j)) {
        c.at(j) = true;
        break;
      }
    }
    if (ai > 3199) {
      over++;
    }
  }
  int res = 0;
  for (int i = 0; i < 8; i++) {
    if (c.at(i)) {
      res++;
    }
  }
  cout << res << " " << res + over << endl;
}
