import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class Main {
while ((str = reader.readLine()) != null) {
String[] tmp
= str.
split(" "); int numPoints
= Integer.
parseInt(tmp
[0]); int numLines
= Integer.
parseInt(tmp
[1]); List<Point> points = new ArrayList<Point>();
for (int i = 0; i < numLines; i++) {
String tmp2
[] = reader.
readLine().
split(" "); points.
add(new Point(x, y
)); points.
add(new Point(y, x
)); }
for (int i = 0; i < points.size(); i++) {
Point point
= points.
get(i
); point.connections++;
for (int j = i; j < points.size(); j++) {
Point point2
= points.
get(j
); if (point2.number == point.number && point2.connectedWith != point.connectedWith) {
point.connections += 1;
}
}
System.
out.
println(point.
connections); }
boolean correct = false;
for (int i =0; i < points.size(); i++) {
if (points.get(i).getConnections() == 4) {
correct=true;
}
}
if (correct) {
} else {
}
}
}
int number = 0;
int connectedWith = 0;
int connections = 0;
public Point(int number,
int connectedWith
) { this.number = number;
this.connectedWith = connectedWith;
}
void setConnections(int connections) {
this.connections = connections;
}
int getConnections() {
return this.connections;
}
}
}