#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> r(n);
  for (int i = 0; i < n; i++) {
    cin >> r.at(i);
  }
  vector<int> c(9);
  for (int i = 0; i < n; i++) {
    if (r.at(i) <= 3199) {
      c.at(r.at(i) / 400) = c.at(r.at(i) / 400) + 1;
    } else {
      c.at(8) = c.at(8) + 1;
    }
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (c.at(i) >= 1) {
      count++;
    }
  }
  cout << max(count, c.at(8)) << " " << count + c.at(8);
}
