#include <bits/stdc++.h>
using namespace std;
struct edge {
  int from, to;
  long long cost;
};
signed main() {
  vector<int> rate(9, 0);
  int N, a, r, ansmin = 0, ansmax;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    r = min(8, a / 400);
    if (rate[r] == 0 && r < 8) {
      ansmin++;
    }
    rate[r]++;
  }
  if (rate[8] > 0) {
    ansmax = min(8, ansmin + rate[8]);
  } else {
    ansmax = ansmin;
  }
  cout << ansmin << " " << ansmax;
}
