#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  cin >> N;
  int R[8] = {};
  int high = 0;
  for (int i = 0; i < N; i++) {
    int r;
    cin >> r;
    if (r >= 3200)
      high++;
    else
      R[r / 400]++;
  }
  int cln = 0;
  for (int i = 0; i < 8; i++) {
    cln += (R[i] > 0);
  }
  if (cln == 0) {
    cout << 1 << ' ';
    if (high >= 8)
      cout << 8 << endl;
    else
      cout << high << endl;
  } else {
    cout << cln << ' ';
    if (high >= 8 - cln)
      cout << 8 << endl;
    else
      cout << (cln + high) << endl;
  }
  return 0;
}
