for(v in readLines("stdin"))write(sort(table(strsplit(v," ")[[1]]),T),T,99,,"")