#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> v(N);
  vector<int> rate(9);
  int min = 0;
  int max;
  for (int i = 0; i < N; i++) {
    cin >> v.at(i);
    if (v.at(i) < 3200) {
      rate.at(v.at(i) / 400)++;
    } else {
      rate.at(8)++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (rate.at(i)) {
      min++;
    }
  }
  if (min + rate.at(8) >= 9) {
    max = 9;
  } else {
    max = min + rate.at(8);
  }
  cout << min << " " << max << endl;
  return 0;
}
