#include <bits/stdc++.h>
using namespace std;
struct aaa {
  aaa() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);
  };
} aaa;
template <class T>
ostream &operator<<(ostream &o, const vector<T> &v) {
  o << "{";
  for (int i = 0; i < (int)v.size(); i++) o << (i > 0 ? ", " : "") << v[i];
  o << "}";
  return o;
}
using int64 = long long;
int main() {
  int n;
  cin >> n;
  map<int, int> mp;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    mp[min(7, a / 400)]++;
  }
  int mpn = mp.size();
  int mina = mpn;
  if (mpn > 1 && mp[7]) mina--;
  int maxa = mpn;
  if (mp[7]) maxa += mp[7] - 1;
  cout << mina << " " << maxa << endl;
}
