'use strict'
let input = require("fs").readFileSync("/dev/stdin", "utf8");

input = input.split('\n');
let topArr = input.shift();
let elm = [...input].map(x=>{return x.split(' ')}).join().split(',').sort();
for(let n = 1; n < elm.length - 1; n++){
	let loadNum = elm.filter(m => m == n);
  	if(loadNum.length != 0){
    	console.log(loadNum.length);
    }
}

