#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> field(9, 0);
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a < 3200) {
      field.at(a / 400)++;
    } else {
      field.at(8)++;
    }
  }
  int counter = 0;
  for (int i = 0; i < 8; i++) {
    if (field.at(i) != 0) {
      counter++;
    }
  }
  if (field.at(8) != 0) {
    if (field.at(8) <= 8 - counter) {
      cout << counter << " " << counter + field.at(8) << endl;
    } else {
      cout << counter << " " << 8 << endl;
    }
  } else {
    cout << counter << " " << counter << endl;
  }
}
