#include <bits/stdc++.h>
using namespace std;
int n, a[100], ta = 0, wa = 0;
vector<int> mu = {};
bool rin = true;
signed main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    a[i] /= 400;
  }
  for (int i = 0; i < n; i++) {
    rin = true;
    if (a[i] < 8) {
      for (int j = 0; j < mu.size(); j++) {
        if (mu[j] == a[i]) rin = false;
      }
    }
    if (rin == true) {
      ta++;
      mu.push_back(a[i]);
      if (a[i] < 8) wa++;
    }
  }
  cout << wa << " " << ta << endl;
  return 0;
}
