#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vll = vector<ll>;
using vvll = vector<vll>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using vs = vector<string>;
using vpll = vector<pair<ll, ll>>;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
const ll INF = 1e15;
const int MOD = 1e9 + 7;
const ll LINF = 1e18;
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  ll n;
  cin >> n;
  vll a(n);
  for (int i = (int)(0); i < (int)(n); ++i) cin >> a[i];
  map<ll, ll> m;
  for (int i = (int)(0); i < (int)(n); ++i) {
    if (a[i] < 400)
      m[0]++;
    else if (a[i] < 800)
      m[1]++;
    else if (a[i] < 1200)
      m[2]++;
    else if (a[i] < 1600)
      m[3]++;
    else if (a[i] < 2000)
      m[4]++;
    else if (a[i] < 2400)
      m[5]++;
    else if (a[i] < 2800)
      m[6]++;
    else if (a[i] < 3200)
      m[7]++;
    else
      m[8]++;
  }
  ll min = 0, max = 0;
  for (auto e : m) {
    if (e.first != 8)
      max++, min++;
    else
      max += e.second;
  }
  cout << min << " " << max << endl;
}
