#include <iostream>
#include <vector>
int main(){
  int n,ans,a,tmp;
  cin >> n;
  vector<int> col(9);
  for(int i=0;i < n;i++){
    cin >> tmp;
    col[tmp / 400] += 1;
  }
  for(int i = 0;i < 9;i++){
  	if (i != 8) ans += col[i]
    cout << ans << " ";
    if (i == 8) ans += col[i]
      cout << ans << endl;
  }
  
  return 0;
}