#include <bits/stdc++.h>
using namespace std;
template <class T1, class T2>
void chmin(T1 &a, T2 b) {
  if (a > b) a = b;
}
template <class T1, class T2>
void chmax(T1 &a, T2 b) {
  if (a < b) a = b;
}
const long long inf = 1LL << 55;
const long long mod = 1e9 + 7;
signed main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  cout << fixed << setprecision(12);
  long long N;
  cin >> N;
  set<long long> cl;
  vector<long long> sum(10);
  for (long long i = (long long)(0); i < (long long)(N); i++) {
    long long a;
    cin >> a;
    long long b = min(8LL, a / 400);
    cl.insert(b);
    sum[b]++;
  }
  if (cl.count(8LL))
    cout << cl.size() - 1 << " ";
  else
    cout << cl.size() << " ";
  if (cl.count(8LL))
    cout << min(8LL, (long long)cl.size() + sum[8] - 1) << endl;
  else
    cout << cl.size() << endl;
  return 0;
}
