Given the structure of a company, your task is to calculate for each employee the number of their subordinates.
The first line has an integer — the number of employees. The employees are numbered , , ..., , and employee is the general director of the company.
After this, there are integers: for each employee , , ... , their direct boss in the company.
Print integers: for each employee , , ..., the number of their subordinates.