#include <bits/stdc++.h>
#include <boost/range/irange.hpp>

using namespace std;
using namespace boost;

main() {
  int64_t n;
  cin >> n;

  vector<int64_t> m(8);
  int64_t m2 = 0;
  for (auto i : irange(0L, n)) {
    int64_t a;
    cin >> a;

    if (a >= 3200) {
      ++m2;
    } else {
      ++m[a / 400];
    }
  }

  int64_t ans = 0;
  for (auto mm : m) {
    if (mm > 0) {
      ++ans;
    }
  }

  cout << max(ans, 1L) << " " << ans + min(8 - ans, m2) << endl;
}