#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
using vi = vector<int>;
using vl = vector<ll>;
using vs = vector<string>;
using vc = vector<char>;
using vb = vector<bool>;
using vd = vector<double>;
vi dir = {-1, 0, 1, 0, -1, -1, 1, 1, -1};
int main() {
  ll n;
  cin >> n;
  vl c(8, 0);
  ll cnt = 0;
  for (int i = 0, i_len = (n); i < i_len; ++i) {
    ll a;
    cin >> a;
    if (a < 3200)
      c[a / 400] = 1;
    else
      cnt++;
  }
  ll ans = 0;
  for (auto v : c) ans += v;
  cout << max(ans, 1LL) << ' ' << min(ans + cnt, 8LL) << endl;
}
