#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, ansmin = 0, ansmax = 0;
  cin >> n;
  vector<int> iro(13);
  for (int i = 0; i < n; i++) {
    cin >> a;
    iro[a / 400]++;
  }
  for (int i = 0; i < 8; i++) {
    if (iro[i] > 0) ansmin++;
  }
  ansmax = ansmin;
  for (int i = 8; i <= 12; i++) {
    if (iro[i] > 0) {
      ansmax += iro[i];
    }
  }
  cout << ansmin << " " << ansmax << endl;
}
