#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
const ll inf = 1ll << 60;
const ll mod = (ll)1e9 + 7;
int main() {
  ll n;
  cin >> n;
  vector<ll> a(9);
  for (ll i = 0; i < n; i++) {
    ll r;
    cin >> r;
    bool b = false;
    for (ll j = 1; j <= 8; j++) {
      if (r < 400 * j) {
        a[j - 1]++;
        b = true;
        break;
      }
    }
    if (!b) {
      a[8]++;
    }
  }
  ll cnt = 0;
  for (ll i : a) {
    if (i > 0) {
      cnt++;
    }
  }
  if (a.back() == 0) {
    cout << cnt << " " << (cnt + a.back()) << endl;
    ;
  } else {
    cout << cnt - 1 << " " << (cnt + a.back() - 1) << endl;
    ;
  }
}
