#include <bits/stdc++.h>
using namespace std;
static const long long MOD = 1000000007;
static const long long INF = 1000000000000000000LL;
int main() {
  long long N;
  cin >> N;
  long long a[N];
  for (long long i = (0), iLen_ = (N); i < iLen_; i++) {
    cin >> a[i];
  }
  long long t[9] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 4800};
  bool s[9] = {};
  long long yaba = 0;
  for (long long i = (0), iLen_ = (N); i < iLen_; i++) {
    for (long long j = (0), jLen_ = (9); j < jLen_; j++) {
      if (a[i] < t[j]) {
        s[j] = true;
        if (j == 8) ++yaba;
        break;
      }
    }
  }
  long long cnt = 0;
  for (long long i = (0), iLen_ = (8); i < iLen_; i++) {
    if (s[i]) ++cnt;
  }
  long long iMax = cnt;
  long long iMin = cnt;
  if (s[9]) {
    iMax += yaba;
  }
  cout << iMin << " " << iMax << endl;
  return 0;
}
