#include <bits/stdc++.h>
using namespace std;
int color(int rate) {
  for (int i = 0; i < 8; ++i) {
    if (rate < 400 * (i + 1)) return i;
  }
  return 8;
}
int main(void) {
  int N, max, min;
  cin >> N;
  vector<int> is_used(9);
  for (int i = 0; i < N; ++i) {
    int rate;
    cin >> rate;
    ++is_used[color(rate)];
  }
  int nused = 0;
  for (int i = 0; i < 8; ++i) {
    if (is_used[i]) ++nused;
  }
  max = std::min(8, nused + is_used[8]);
  min = std::max(1, nused);
  cout << min << " " << max << endl;
  return 0;
}
