#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int rates[8] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199};
  bool colors[8];
  int cnum = 0;
  int tnum = 0;
  for (int i = 0; i < 8; ++i) {
    colors[i] = false;
  }
  cin >> N;
  int rate;
  for (int i = 0; i < N; ++i) {
    cin >> rate;
    for (int j = 0; j < 9; ++j) {
      if (j == 9) {
        tnum++;
      } else if (rate < rates[j]) {
        if (!colors[j]) {
          colors[j] = true;
          cnum++;
        }
      }
    }
  }
  cout << max(tnum, cnum) << " " << min(cnum + tnum, 8);
}
