Degrees of vertices by a list of edges
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Undirected graph is given with a list of edges. Find the degrees of all its vertices.
Input
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.
Output
Print numbers — the degrees of graph vertices.
Examples
Input #1
Answer #1
Submissions 6K
Acceptance rate 68%