#include <bits/stdc++.h>
using namespace std;
int64_t min(int64_t a, int64_t b) {
  if (a > b) {
    return b;
  } else {
    return a;
  }
}
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (size_t i = 0; i < n; i++) {
    cin >> a.at(i);
  }
  vector<int> c(9, 0);
  for (size_t i = 0; i < n; i++) {
    c.at(a.at(i) / 400)++;
  }
  int mini = 0;
  for (size_t i = 0; i < 8; i++) {
    if (c.at(i) > 0) {
      mini++;
    }
  }
  if (mini == 0) {
    if (c.at(8) > 0) {
      mini++;
    }
  }
  int64_t maxi = min(8, mini + c.at(8));
  cout << mini << " " << maxi << endl;
}
