#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a.at(i);
  vector<bool> color(8, false);
  int upper = 0;
  sort(a.begin(), a.end());
  for (int i = 0; i < n; i++) {
    int thresh = 0;
    if (a.at(i) >= 3200) upper++;
    for (int j = 0; j < 8; j++) {
      if (thresh <= a.at(i) && a.at(i) < thresh + 400) {
        color.at(j) = true;
      }
      thresh += 400;
    }
  }
  int n_count = count(color.begin(), color.end(), true);
  cout << n_count << " " << n_count + upper << endl;
}
