#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int A[110];
  for (int i = 0; i < N; i++) cin >> A[i];
  int B[13] = {};
  for (int i = 0; i < N; i++) {
    int ai = A[i];
    B[ai / 400]++;
  }
  int mn = 0, mx = 0;
  for (int j = 0; j <= 7; j++) {
    if (B[j] >= 1) {
      mn++;
      mx++;
    }
  }
  for (int j = 8; j < 13; j++) mx += B[j];
  cout << mn << " " << mx << endl;
  return 0;
}
