#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, i, j, min, max;
  min = max = 0;
  int b[9] = {};
  int c[9] = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  cin >> N;
  vector<int> a(N);
  for (i = 0; i < N; i++) {
    cin >> a[i];
    for (j = 0; j < sizeof(b) / sizeof(b[0]) - 1; j++) {
      if ((c[j] <= a[i]) && (a[i] < c[j + 1])) b[j] = 1;
    }
    if (c[8] <= a[i]) b[8]++;
  }
  for (i = 0; i < 8; i++) {
    min += b[i];
  }
  max = (min + b[8] < 9) ? min + b[8] : 8;
  if (min == 0) min = 1;
  cout << min << " " << max << endl;
  cin >> max;
  return 0;
}
