#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <typename T>
using V = std::vector<T>;
using Vi = V<int>;
using VVi = V<V<int>>;
using Vl = V<ll>;
using VVl = V<V<ll>>;
using Vs = V<string>;
template <typename T1, typename T2>
using P = std::pair<T1, T2>;
using Pii = P<int, int>;
using Pll = P<ll, ll>;
using Pdd = P<double, double>;
template <typename T1, typename T2>
using M = std::map<T1, T2>;
using Mii = M<int, int>;
using Mll = M<ll, ll>;
using Msi = M<string, int>;
const double PI = acos(-1);
const ll MOD = 1e9 + 7;
int n;
int main() {
  cin >> n;
  Vi x(9, 0);
  for (int i = 0; i < (int)(n); ++i) {
    int a;
    cin >> a;
    if (a < 400)
      x[0]++;
    else if (a < 800)
      x[1]++;
    else if (a < 1200)
      x[2]++;
    else if (a < 1600)
      x[3]++;
    else if (a < 2000)
      x[4]++;
    else if (a < 2400)
      x[5]++;
    else if (a < 2800)
      x[6]++;
    else if (a < 3200)
      x[7]++;
    else
      x[8]++;
  }
  int c = 0;
  for (int i = 0; i < (int)(8); ++i)
    if (x[i] > 0) c++;
  if (c == 0) {
    cout << 1 << ' ';
  } else {
    cout << c << ' ';
  }
  cout << c + min(8 - c, x[8]) << '\n';
  return 0;
}
