#include <iostream>

using namespace std;

int main(){
  int n;
  int nenrei;

  while(cin >> n,n ){
  int ans0=0,ans10 = 0,ans20 = 0,ans30 = 0,ans40 = 0,ans50 = 0;
  int ansover = 0;

    for(int i = 0;i < n;i++){    

      cin >> nenrei;
      if(nenrei<10)ans0++;
      else if(nenrei<20)ans10++;
      else if(nenrei<30)ans20++;
      else if(nenrei<40)ans30++;
      else if(nenrei<50)ans40++;
      else if(nenrei<60)ans50++;
      else ansover++;
         }
    cout << ans0 << endl;
    cout <<ans10 << endl;
    cout <<ans20 << endl;
    cout << ans30 << endl;
    cout <<ans40 << endl;
    cout <<ans50 << endl;
    cout <<ansover << endl;

  }
  return 0;
}