#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
int main() {
  int n;
  cin >> n;
  vector<bool> exist(8, false);
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    int rate;
    cin >> rate;
    if (rate < 3200) {
      exist.at(rate / 400) = true;
      cnt++;
    }
  }
  int va = count((exist).begin(), (exist).end(), true);
  int ma, mi;
  if (cnt == 0) {
    ma = min(n, 8);
    mi = 1;
  } else {
    mi = va;
    ma = min(8, va + n - cnt);
  }
  cout << mi << " " << ma << endl;
}
