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