{"problem":{"name":"management","description":{"content":"A company has $N$ members, who are assigned ID numbers $1, ..., N$. Every member, except the member numbered $1$, has exactly one immediate boss with a smaller ID number. When a person $X$ is the imme","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc163_c"},"statements":[{"statement_type":"Markdown","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.\n\n## Constraints\n\n*   $2 \\leq N \\leq 2 \\times 10^5$\n*   $1 \\leq A_i < i$\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$N$\n$A_2$ $...$ $A_N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc163_c","tags":[],"sample_group":[["5\n1 1 2 2","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."],["10\n1 1 1 1 1 1 1 1 1","9\n0\n0\n0\n0\n0\n0\n0\n0\n0"],["7\n1 2 3 4 5 6","1\n1\n1\n1\n1\n1\n0"]],"created_at":"2026-03-03 11:01:13"}}