#include <bits/stdc++.h>
using namespace std;
long long N;
long long A[103];
long long RATING[9] = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
signed main() {
  cin >> N;
  for (long long i = 0, i_len = (N); i < i_len; ++i) cin >> A[i];
  set<long long> rset;
  long long maxr = 0;
  for (long long i = 0, i_len = (N); i < i_len; ++i) {
    long long a = A[i];
    for (long long k = (8); k > 0; --k) {
      long long r = RATING[k];
      if (a >= r) {
        if (r == 3200)
          ++maxr;
        else
          rset.insert(r);
        break;
      }
    }
  }
  long long minans = rset.size();
  if (maxr > 0 && rset.size() == 0) minans += 1;
  long long maxans = rset.size() + maxr;
  cout << minans << " " << maxans << endl;
  return 0;
}
