#include <bits/stdc++.h>
using namespace std;
int A[100];
constexpr int maxidx = 8;
int coloridx(int rate) { return min(maxidx, rate / 400); }
int main() {
  int N;
  cin >> N;
  for (int i = 0; i < N; ++i) {
    cin >> A[i];
  }
  int ratemap[maxidx + 1] = {0};
  for (int i = 0; i < N; ++i) {
    ratemap[coloridx(A[i])]++;
  }
  for (int i = 0; i <= maxidx; ++i) {
    cout << ratemap[i] << endl;
  }
  int colornum = 0;
  for (int i = 0; i < maxidx; ++i) {
    if (ratemap[i] > 0) colornum++;
  }
  cout << colornum << " ";
  cout << min(maxidx, colornum + ratemap[maxidx]) << endl;
  return 0;
}
