#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> vec(9);
  int rate;
  int u;
  for (int i = 0; i < n; i++) {
    cin >> rate;
    if (rate > 3200) {
      rate = 3200;
    }
    u = rate / 400;
    vec.at(u)++;
  }
  int iro = 0;
  for (int i = 0; i < 8; i++) {
    if (vec.at(i) > 0) {
      iro++;
    }
  }
  cout << iro << " " << iro + vec.at(8) << endl;
}
