EasyRating 1000
Friend Counts
An undirected graph has n people and m friendships. Print each person's number of friends.
Input
n m, then m lines 'u v'.
Output
One line.
Sample 1
Input
4 3 1 2 2 3 2 4
Output
1 3 1 1
Sample 2
Input
1 0
Output
0
Output appears here