#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> iro(8);
  int kami = 0;
  vector<int> vec(N, 0);
  for (int i = 0; i < N; i++) {
    cin >> vec[i];
    if (vec[i] >= 3200) {
      kami++;
    } else {
      iro[vec[i] / 400]++;
    }
  }
  int syou = 0;
  for (int i = 0; i < 8; i++) {
    if (iro[i] != 0) {
      syou++;
    }
  }
  cout << syou << " " << syou + kami << endl;
}
