import std.stdio, std.string, std.array, std.conv, std.algorithm, std.typecons, std.range, std.container, std.math, std.algorithm.searching, std.functional,std.mathspecial, std.numeric;

void main(){
    auto nm=readln.split.map!(to!int).array;
    int[][] abs;
    foreach(i;0..nm[1])abs~=readln.split.map!(to!int).array;
    foreach(n;1..nm[0]+1)writeln(abs.count!(ab=>ab[0]==n||ab[1]==n));
}
