Undirected graph is given with a list of edges. Find the degrees of all its vertices.
The first line contains the number of vertices in a graph and the number of edges . The given pairs of integers — the edges of the graph.
Print numbers — the degrees of graph vertices.