#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
ll MOD = 1e9 + 7;
ll devc(ll x, ll y) { return 1 + (x - 1) / y; }
int main() {
  cin.tie(0);
  ios::sync_with_stdio(0);
  cout << fixed << setprecision(20);
  ll N;
  cin >> N;
  set<ll> st;
  ll ct = 0;
  for (ll i = 0; i < (N); ++i) {
    ll x;
    cin >> x;
    if (x < 3200) st.insert(x / 400);
    if (x >= 3200) ++ct;
  }
  cout << max((ll)st.size(), 1LL) << " " << min((ll)st.size() + ct, 8LL)
       << endl;
  return 0;
}
