#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using ldouble = long double;
using P = pair<int, int>;
using LP = pair<LL, LL>;
static const int INF = INT_MAX;
static const LL LINF = LLONG_MAX;
static const int MIN = INT_MIN;
static const LL LMIN = LLONG_MIN;
static const int MOD = 1e9 + 7;
static const int SIZE = 200005;
const int dx[] = {0, -1, 1, 0};
const int dy[] = {-1, 0, 0, 1};
vector<LL> Div(LL n) {
  vector<LL> ret;
  for (LL i = 1; i * i <= n; ++i) {
    if (n % i == 0) {
      ret.push_back(i);
      if (i * i != n) ret.push_back(n / i);
    }
  }
  sort(ret.begin(), ret.end());
  return ret;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int c[10] = {};
  int N;
  cin >> N;
  while (N--) {
    int a;
    cin >> a;
    a /= 400;
    c[min(8, a)]++;
  }
  int cnt = 0;
  for (int i = 0; i < 8; ++i) {
    if (c[i] != 0) ++cnt;
  }
  if (c[8] != 0 && c[7] == 0) ++cnt;
  if (c[8] != 0)
    cout << cnt << " " << cnt + c[8] << endl;
  else
    cout << cnt << " " << cnt << endl;
  return 0;
}
