#include <bits/stdc++.h>
using namespace std;
const long long LLINF = (1LL << 60);
const long long INF = (1LL << 30);
const double DINF = std::numeric_limits<double>::infinity();
const long long MOD = 1000000007;
signed main() {
  cin.tie(0);
  cout.tie(0);
  ios::sync_with_stdio(false);
  long long N;
  vector<long long> A;
  vector<long long> color(9, 0);
  cin >> N;
  A.resize(N);
  for (long long i = 0; i < N; ++i) {
    cin >> A[i];
    long long ind = A[i] / 400;
    color[ind]++;
  }
  long long c_min = 0, c_max = 0;
  bool eight = true;
  for (long long i = 0; i < 8; ++i) {
    if (color[i] > 0) {
      eight = false;
      break;
    }
  }
  if (eight && color[8] > 0) {
    c_min = 1;
  } else {
    for (long long i = 0; i < 8; ++i) {
      if (color[i] > 0) {
        c_min++;
        c_max++;
      }
    }
  }
  c_max += color[8];
  printf("%lld %lld\n", c_min, c_max);
  return 0;
}
