#include <bits/stdc++.h>
const int INF = 1001001001;
using namespace std;
int main() {
  int N;
  int a[10000];
  int c[9];
  int res = 0;
  cin >> N;
  for (int i = 0; i < N; i++) cin >> a[i];
  for (int i = 0; i < 9; i++) c[i] = 0;
  const int boarder[9] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200, INF};
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < 9; j++) {
      if (a[i] < boarder[j]) {
        c[j]++;
        break;
      }
    }
  }
  for (int i = 0; i < 8; i++) {
    if (c[i]) res++;
  }
  if (c[8] == N) {
    cout << 1 << " " << min(8, c[8]) << endl;
  } else {
    cout << res << " " << min(8, res + c[8]) << endl;
  }
}
