#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, min = 0, max = 0, tmp = 10;
  cin >> n;
  vector<long long> a(n);
  set<long long> s;
  for (long long i = (0); i < (n); ++i) {
    cin >> a[i];
    long long d = a[i] / 400;
    if (d < 8) {
      s.insert(d);
    } else {
      s.insert(d + tmp);
      tmp++;
    }
  }
  auto ite = s.begin();
  while (ite != s.end()) {
    if (*ite < 8) {
      min++;
    }
    max++;
    ite++;
  }
  if (max < 8) {
    cout << min << " " << max << endl;
  } else {
    cout << min << " " << 8 << endl;
  }
}
