Олимпиадный тренинг

Задача 18700. The number of ones, twos, triplets, etc. #1


Задача

Темы:
Enter numbers from 1 to 9 until  
until 0 is entered. A maximum of 100 numbers will be entered.
 
Count the number of units in this sequence, 
the number of twos, the number of triples, and so on (in the output
file should always have 9 numbers).
 
 
Input example:
1 1 4 1 5 8 6 3 5 1 0         
 
Sample output:
4 0 1 1 2 1 0 1 0