#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 score[8] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  int cnt[8], any = 0;
  memset(cnt, 0, sizeof(cnt));
  for (int i = 0; i < N; i++) {
    if (a[i] >= 3200) {
      any++;
      continue;
    }
    for (int j = 0; j < 8; j++) {
      if (a[i] < score[j]) {
        cnt[j]++;
        break;
      }
    }
  }
  int ans_min = 0;
  for (int i = 0; i < 8; i++) {
    if (cnt[i] > 0) ans_min++;
  }
  cout << ans_min << ' ' << ans_min + any << endl;
  return 0;
}
