#include <bits/stdc++.h>
using namespace std;
using P = pair<int, int>;
int main() {
  int N;
  cin >> N;
  vector<int> A(N);
  for (int i = 0; i < N; i++) cin >> A[i];
  int B[8] = {0};
  for (int i = 0; i < N; i++) {
    if (A.at(i) < 3200) {
      B[A.at(i) / 400 - 1]++;
    } else {
      B[7]++;
    }
  }
  int sum = 0;
  for (int i = 0; i < 7; i++) {
    if (B[i] != 0) {
      sum++;
    }
  }
  if (sum == 0) {
    cout << 1 << " " << min(sum + B[7], 8) << endl;
  } else {
    cout << sum << " " << min(sum + B[7], 8) << endl;
  }
}
