#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n, a;
  cin >> n;
  map<int, int> hash;
  for (int i = 0; i < n; ++i) {
    cin >> a;
    a = min(a / 400, 8);
    hash[a]++;
  }
  bool eight = (hash.find(8) != hash.end());
  int normal = hash.size() - eight;
  if (normal == 0) {
    cout << 1 << " " << min(hash[8], 8) << endl;
  } else {
    cout << normal << " " << normal + min(hash[8], 8) << endl;
  }
  return 0;
}
