#include <bits/stdc++.h>
using namespace std;
int rateIdx(int rate) { return rate / 400; }
void solve() {
  int n;
  cin >> n;
  int rates[9]{};
  while (n--) {
    int rate;
    cin >> rate;
    int idx = rateIdx(rate);
    rates[idx]++;
  }
  int kind = 0;
  for (int i = 0; i < 8; i++) {
    if (rates[i] != 0) kind++;
  }
  if (rates[8] != 0) {
    int maxv = 0;
    if (kind + rates[8] >= 8)
      maxv = 8;
    else
      maxv = kind + rates[8];
    cout << kind << " " << maxv << endl;
  } else {
    cout << kind << " " << kind << endl;
  }
}
void wrapper() {
  for (int i = 0; i < (4); ++i) {
    cout << "[TEST " << (i + 1) << "]\n";
    solve();
    cout << "\n";
  }
}
int main() {
  (cin.tie(0), cout.tie(0), ios::sync_with_stdio(false));
  solve();
}
