using System;
class Program
 {
        static void Main(string[] args)
        {
            var boss = Console.ReadLine().Split(' ');
            for(int i = 0; i < boss.Length + 1;i++){
                var count_up = 0;
                foreach(var obj in boss){
                    if(int.Parse(obj) == i + 1) count_up++;
                }
                Console.WriteLine(count_up);
            }
        }
 }