#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> A(N);
  for (int i = 0; i < N; i++) {
    cin >> A[i];
  }
  vector<bool> color(8);
  int cnt = 0;
  for (int i = 0; i < N; i++) {
    if (A[i] >= 3200) {
      cnt++;
    } else {
      color[A[i] / 400] = true;
    }
  }
  int cntcolor = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) {
      cntcolor++;
    }
  }
  if (cntcolor == 0) {
    cout << 1 << ' ' << min(8, cnt) << endl;
  } else {
    cout << cntcolor << ' ' << min(8, cntcolor + cnt) << endl;
  }
}
