#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> R(9, 0);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    int r = a / 400;
    if (r < 8)
      R[r]++;
    else
      R[8]++;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (R[i] > 0) cnt++;
  }
  if (cnt == 0 && R[8] == 0) {
    cout << 0 << " " << 0 << endl;
  } else if (cnt == 0 && R[8] > 0) {
    cout << 1 << " " << min(8, R[8]) << endl;
  } else
    cout << cnt << " " << min(8, cnt + R[8]) << endl;
  return 0;
}
