#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  vector<int> a;
  cin >> N;
  a.resize(N);
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  int colorFlg[10] = {
      0,
  };
  int nmaxPoint = 0;
  for (int i = 0; i < N; i++) {
    if (a[i] >= 3200) {
      nmaxPoint++;
    } else {
      colorFlg[a[i] / 400] = 1;
    }
  }
  int min = 0;
  for (int i = 0; i < 8; i++) {
    min += colorFlg[i];
  }
  int max = min + nmaxPoint;
  if (max > 8) max = 8;
  if (min == 0) min = 1;
  cout << min << " " << max << endl;
}
