#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> A(9), B(9), count(9);
  A[0] = 1;
  B[0] = 399;
  A[8] = 3200;
  B[8] = 4800;
  for (int i = 1; i < 8; i++) {
    A[i] = 400 * i;
    B[i] = B[i - 1] + 400;
  }
  for (int i = 0; i < 9; i++) {
    count[i] = 0;
  }
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  for (int j = 0; j < N; j++) {
    for (int i = 0; i < 9; i++) {
      if (A[i] <= a[j] && a[j] <= B[i]) {
        count[i]++;
      }
    }
  }
  int min = 0;
  for (int i = 0; i < 8; i++) {
    if (count[i] != 0) {
      min++;
    }
  }
  if (count[8] != 0) {
    cout << min << " " << min + count[8] << endl;
  } else {
    cout << min << " " << min << endl;
  }
}
