#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> A(N);
  for (int i = 0; i < N; i++) cin >> A[i];
  int color[9] = {0};
  for (int i = 0; i < N; i++) {
    if (A[i] >= 3200)
      color[8]++;
    else
      for (int j = 0; j < 8; j++) {
        if (A[i] < 400 * (j + 1)) {
          color[j]++;
          break;
        }
      }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) ans++;
  }
  cout << max(1, ans) << " " << min(8, ans + color[8]) << endl;
  return 0;
}
