#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vvi = vector<vi>;
using vll = vector<ll>;
using vvll = vector<vll>;
using vb = vector<bool>;
using vs = vector<string>;
using vld = vector<ld>;
using vvld = vector<vld>;
template <class T>
inline void chmax(T& a, T b) {
  a = std::max(a, b);
}
template <class T>
inline void chmin(T& a, T b) {
  a = std::min(a, b);
}
const long long INF = 1LL << 60;
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(20);
  ll n;
  cin >> n;
  vll a(n);
  for (ll i = 0; i < n; i++) {
    cin >> a[i];
  }
  vll color(9);
  for (ll i = 0; i < n; i++) {
    if (a[i] >= 3200) {
      a[i] = 3200;
    }
    color[a[i] / 400]++;
  }
  ll mn = 0, mx = 0;
  for (ll i = 0; i < 8; i++) {
    if (color[i]) {
      mn++;
      mx++;
    } else {
      if (color[8]) {
        color[8]--;
        mx++;
      }
    }
  }
  cout << mn << " " << mx << endl;
  return 0;
}
