#include <bits/stdc++.h>
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
using namespace std;
int main(void) {
  int N;
  cin >> N;
  vector<int> rate;
  rate.resize(N);
  for (int i = 0; i < (N); i++) cin >> rate[i];
  bool colors[8] = {false};
  int pro = 0;
  for (int i = 0; i < (N); i++) {
    if (4800 >= rate[i] && rate[i] >= 3200) {
      pro++;
      continue;
    } else if (3200 > rate[i])
      colors[rate[i] / 400] = true;
  }
  int colors_n = 0;
  for (int i = 0; i < (8); i++) {
    if (colors[i]) colors_n++;
  }
  if (colors_n == 0) {
    cout << (pro == 0 ? 0 : 1) << " " << (pro >= 8 ? 8 : pro) << endl;
  } else {
    cout << colors_n << " " << ((colors_n + pro) >= 8 ? 8 : colors_n + pro)
         << endl;
  }
}
