#abc061b. [abc061_b]Counting Roads

[abc061_b]Counting Roads

Problem Statement

There are NN cities and MM roads. The ii-th road (1iM)(1≤i≤M) connects two cities aia_i and bib_i (1ai,biN)(1≤a_i,b_i≤N) bidirectionally. There may be more than one road that connects the same pair of two cities. For each city, how many roads are connected to the city?

Constraints

  • 2N,M502≤N,M≤50
  • 1ai,biN1≤a_i,b_i≤N
  • aibia_i ≠ b_i
  • All input values are integers.

Input

Input is given from Standard Input in the following format:

NN MM a1a_1 b1b_1 ::
aMa_M bMb_M

Output

Print the answer in NN lines. In the ii-th line (1iN)(1≤i≤N), print the number of roads connected to city ii.


Sample Input 1

4 3
1 2
2 3
1 4

Sample Output 1

2
2
1
1
  • City 11 is connected to the 11-st and 33-rd roads.
  • City 22 is connected to the 11-st and 22-nd roads.
  • City 33 is connected to the 22-nd road.
  • City 44 is connected to the 33-rd road.

Sample Input 2

2 5
1 2
2 1
1 2
2 1
1 2

Sample Output 2

5
5

Sample Input 3

8 8
1 2
3 4
1 5
2 8
3 7
5 2
4 1
6 8

Sample Output 3

3
3
2
2
2
1
1
2