{"raw_statement":[{"iden":"problem statement","content":"A company has $N$ members, who are assigned ID numbers $1, ..., N$.\nEvery member, except the member numbered $1$, has exactly one immediate boss with a smaller ID number.\nWhen a person $X$ is the immediate boss of a person $Y$, the person $Y$ is said to be an immediate subordinate of the person $X$.\nYou are given the information that the immediate boss of the member numbered $i$ is the member numbered $A_i$. For each member, find how many immediate subordinates it has."},{"iden":"constraints","content":"*   $2 \\leq N \\leq 2 \\times 10^5$\n*   $1 \\leq A_i < i$"},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$\n$A_2$ $...$ $A_N$"},{"iden":"sample input 1","content":"5\n1 1 2 2"},{"iden":"sample output 1","content":"2\n2\n0\n0\n0\n\nThe member numbered $1$ has two immediate subordinates: the members numbered $2$ and $3$.\nThe member numbered $2$ has two immediate subordinates: the members numbered $4$ and $5$.\nThe members numbered $3$, $4$, and $5$ do not have immediate subordinates."},{"iden":"sample input 2","content":"10\n1 1 1 1 1 1 1 1 1"},{"iden":"sample output 2","content":"9\n0\n0\n0\n0\n0\n0\n0\n0\n0"},{"iden":"sample input 3","content":"7\n1 2 3 4 5 6"},{"iden":"sample output 3","content":"1\n1\n1\n1\n1\n1\n0"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}