#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Vi = vector<int>;
using Vl = vector<ll>;
using Pii = pair<int, int>;
using Pll = pair<ll, ll>;
constexpr int I_INF = numeric_limits<int>::max();
constexpr ll L_INF = numeric_limits<ll>::max();
int main() {
  cin.tie(0), cout.tie(0);
  ios::sync_with_stdio(false);
  ll N;
  cin >> N;
  Vl A(N);
  for (ll i = 0; i < N; i++) {
    cin >> A[i];
  }
  Vl sep = {0, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  Vl nums(9);
  for (ll i = 0; i < N; i++) {
    int idx = upper_bound(sep.begin(), sep.end(), A[i]) - sep.begin() - 1;
    ++nums[idx];
  }
  ll mn = 0, mx = 0;
  for (ll i = 0; i < 8; i++) {
    mn += (nums[i] > 0 ? 1 : 0);
  }
  mx = mn;
  mx += nums[8];
  cout << mn << " " << mx << endl;
  return 0;
}
