#include <bits/stdc++.h>
using namespace std;
using vi = vector<int64_t>;
using vvi = vector<vi>;
using ll = int64_t;
using P = pair<ll, ll>;
int64_t INF = 10010010010;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  ll n;
  cin >> n;
  vi a(n);
  for (int64_t i = 0; i < (int64_t)(n); i++) cin >> a.at(i);
  vi colar(9);
  for (int64_t i = 0; i < (int64_t)(n); i++) {
    ll col = a.at(i) / 400;
    if (a.at(i) / 400 >= 8) col = 8;
    colar.at(col)++;
  }
  ll maxn, minn;
  for (int64_t i = 0; i < (int64_t)(8); i++)
    if (colar.at(i) > 0) minn++, maxn++;
  if (colar.at(8) > 0) maxn += colar.at(8);
  cout << minn << " " << maxn << endl;
}
