#include <stdio.h>
#include <stdlib.h>

int main(void){
    
    int N;
    int ch;
  	int ret;
    
    ret = scanf("%d", &N);
    
    int B[N];
    
    for (int j=0;j < N; j++){
        B[j]=0;
    }
    
    while((ch = getchar()) != EOF){
        
        B[ch-49]++; 
        
    }
    
    for(int i=0; i < N; i++){
        
        printf("%d\n", B[i]);
        
    }
    
}
