#include <bits/stdc++.h>
using namespace std;
struct fast_ios {
  fast_ios() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);
  };
} fast_ios_;
template <typename T>
istream &operator>>(istream &is, vector<T> &v) {
  for (auto &x : v) is >> x;
  return is;
}
template <typename T>
ostream &operator<<(ostream &os, vector<T> &v) {
  for (long long i = 0; i < v.size(); i++) {
    cout << v[i];
    if (i != v.size() - 1) cout << endl;
  };
  return os;
}
template <typename T1, typename T2>
ostream &operator<<(ostream &os, pair<T1, T2> p) {
  cout << '(' << p.first << ',' << p.second << ')';
  return os;
}
template <typename T>
void Out(T x) {
  cout << x << endl;
}
template <typename T1, typename T2>
void Ans(bool first, T1 y, T2 n) {
  if (first)
    Out(y);
  else
    Out(n);
}
using vec = vector<long long>;
using mat = vector<vec>;
using Pii = pair<long long, long long>;
using PiP = pair<long long, Pii>;
using PPi = pair<Pii, long long>;
using bools = vector<bool>;
using pairs = vector<Pii>;
const long long mod = 1000000007;
using namespace std;
signed main() {
  long long N;
  cin >> N;
  vec a(N);
  vec P(9, 0);
  for (long long i = (0); i < (N); i++) {
    cin >> a[i];
    if (a[i] < 400)
      P[0]++;
    else if (a[i] < 800)
      P[1]++;
    else if (a[i] < 1200)
      P[2]++;
    else if (a[i] < 1600)
      P[3]++;
    else if (a[i] < 2000)
      P[4]++;
    else if (a[i] < 2400)
      P[5]++;
    else if (a[i] < 2800)
      P[6]++;
    else if (a[i] < 3200)
      P[7]++;
    else
      P[8]++;
  }
  long long Mi = 0;
  for (long long i = (0); i < (8); i++) Mi += P[i];
  long long Ma = Mi;
  for (long long i = (0); i < (8); i++) {
    if (P[i] == 0 && P[8] > 0) {
      Ma++;
      P[8]--;
    }
  }
  cout << Mi << " " << Ma << endl;
}
