#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<int> rate(9);
  for (int i = 0; i < (int)(n); i++) {
    cin >> a.at(i);
    if (a.at(i) >= 3200)
      rate.at(8)++;
    else
      rate.at(a.at(i) / 400)++;
  }
  int Min = 0, Max = 0, no = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (rate.at(i) > 0)
      Min++;
    else if (rate.at(i) == 0)
      no++;
  }
  int add;
  if (no > rate.at(8))
    add = rate.at(8);
  else
    add = no;
  if (Min == 0) {
    Min = 1;
    Max = add;
  } else {
    Max = Min + add;
  }
  cout << Min << " " << Max << endl;
}
