#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
using pii = pair<i64, i64>;
template <class A, class B>
inline bool chmax(A &a, const B &b) {
  return b > a ? a = b, 1 : 0;
}
template <class A, class B>
inline bool chmin(A &a, const B &b) {
  return b < a ? a = b, 1 : 0;
}
constexpr int INF = 0x3f3f3f3f;
constexpr i64 LINF = 0x3f3f3f3f3f3f3f3fLL;
constexpr int MOD = int(1e9) + 7;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n;
  cin >> n;
  int rate[10] = {};
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    if (1 <= a && a <= 399)
      ++rate[1];
    else if (400 <= a && a <= 799)
      ++rate[2];
    else if (800 <= a && a <= 1199)
      ++rate[3];
    else if (1200 <= a && a <= 1599)
      ++rate[4];
    else if (1600 <= a && a <= 1999)
      ++rate[5];
    else if (2000 <= a && a <= 2399)
      ++rate[6];
    else if (2400 <= a && a <= 2799)
      ++rate[7];
    else if (2800 <= a && a <= 3199)
      ++rate[8];
    else
      ++rate[9];
  }
  int colorcnt = 0;
  for (int i = 1; i <= 8; ++i)
    if (rate[i]) ++colorcnt;
  int minv = max(colorcnt, rate[9]);
  int maxv = colorcnt + rate[9];
  cout << minv << ' ' << maxv << "\n";
  return 0;
}
