#include <bits/stdc++.h>
using namespace std;
using VS = vector<string>;
using LL = long long;
using VI = vector<int>;
using VVI = vector<VI>;
using PII = pair<int, int>;
using PLL = pair<LL, LL>;
using VL = vector<LL>;
using VVL = vector<VL>;
const int INF = 1e9;
const LL LINF = 1e16;
const LL MOD = 1000000007;
const double PI = acos(-1.0);
int DX[8] = {0, 0, 1, -1, 1, 1, -1, -1};
int DY[8] = {1, -1, 0, 0, 1, -1, 1, -1};
LL N;
LL ans = 0LL;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  cin >> N;
  VI a(N);
  VI c(8, 0);
  int god = 0;
  for (int(i) = (0); (i) < (N); (i)++) {
    cin >> a[i];
    if (a[i] >= 3200) god++;
  }
  for (int(i) = (0); (i) < (8); (i)++) {
    for (int(k) = (0); (k) < (N); (k)++) {
      if (i * 400 <= a[k] && a[k] < (i + 1) * 400) {
        c[i]++;
      }
    }
  }
  int m = 0;
  int M = 0;
  for (int(i) = (0); (i) < (8); (i)++) {
    if (c[i]) m++;
  }
  if (m == 0 && god) m = 1;
  M = m + god;
  cout << m << " " << M << endl;
  return 0;
}
