#include <bits/stdc++.h>
using namespace std;
int main() {
  array<bool, 8> clr = {false, false, false, false, false, false, false};
  vector<int> rate;
  int n;
  int max = 0;
  int min = 0;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int tmp;
    cin >> tmp;
    rate.push_back(tmp);
  }
  for (int j = 0; j < rate.size(); ++j) {
    if (rate[j] >= 3200) {
      ++max;
    } else if (clr[rate[j] / 400] == false) {
      clr[rate[j] / 400] = true;
      ++min;
      ++max;
    }
  }
  cout << min << " " << max << endl;
  return 0;
}
