#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n;
  cin >> n;
  vector<long long> a(n);
  vector<bool> rating(8, false);
  long long ans = 0, ansmin = 0, big = 0;
  for (long long i = 0; i < n; i++) {
    cin >> a.at(i);
    if (a.at(i) / 400 >= 8)
      big++;
    else
      rating.at(a.at(i) / 400) = true;
  }
  ans += big;
  if (n - big < big) {
    ansmin = 1;
  }
  for (long long i = 0; i < 8; i++) {
    if (rating.at(i)) {
      ans++;
      ansmin++;
    }
  }
  cout << ansmin << ' ' << ans << endl;
}
