import java.util.*;
import static java.lang.System.*;
import static java.lang.Math.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(in);
    int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());
int[] a=new int[m];
int[] b=new int[m];
HashMap<Integer,Integer> map=new HashMap<>();
for (int i = 0; i < m; i++) {
    a[i]=Integer.parseInt(sc.next());
    b[i]=Integer.parseInt(sc.next());
}
    for (int i = 1; i <= n; i++) {
        map.put(i, 0);
    }
    for (int i = 0; i < m; i++) {
        int c=map.get(a[i])+1;
        map.put(a[i], c);
        c=map.get(b[i])+1;
        map.put(b[i], c);
    }
    for (int i = 1; i <= n; i++) {
        out.println(map.get(i));
    }
}
} import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(in);
    int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());
int[] a=new int[m];
int[] b=new int[m];
HashMap<Integer,Integer> map=new HashMap<>();
for (int i = 0; i < m; i++) {
    a[i]=Integer.parseInt(sc.next());
    b[i]=Integer.parseInt(sc.next());
}
    for (int i = 1; i <= n; i++) {
        map.put(i, 0);
    }
    for (int i = 0; i < m; i++) {
        int c=map.get(a[i])+1;
        map.put(a[i], c);
        c=map.get(b[i])+1;
        map.put(b[i], c);
    }
    for (int i = 1; i <= n; i++) {
        out.println(map.get(i));
    }
}
} Main public static void main(String[] args){
Scanner sc = new Scanner(in);
    int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());
int[] a=new int[m];
int[] b=new int[m];
HashMap<Integer,Integer> map=new HashMap<>();
for (int i = 0; i < m; i++) {
    a[i]=Integer.parseInt(sc.next());
    b[i]=Integer.parseInt(sc.next());
}
    for (int i = 1; i <= n; i++) {
        map.put(i, 0);
    }
    for (int i = 0; i < m; i++) {
        int c=map.get(a[i])+1;
        map.put(a[i], c);
        c=map.get(b[i])+1;
        map.put(b[i], c);
    }
    for (int i = 1; i <= n; i++) {
        out.println(map.get(i));
    }
} main {
Scanner sc = new Scanner(in);
    int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());
int[] a=new int[m];
int[] b=new int[m];
HashMap<Integer,Integer> map=new HashMap<>();
for (int i = 0; i < m; i++) {
    a[i]=Integer.parseInt(sc.next());
    b[i]=Integer.parseInt(sc.next());
}
    for (int i = 1; i <= n; i++) {
        map.put(i, 0);
    }
    for (int i = 0; i < m; i++) {
        int c=map.get(a[i])+1;
        map.put(a[i], c);
        c=map.get(b[i])+1;
        map.put(b[i], c);
    }
    for (int i = 1; i <= n; i++) {
        out.println(map.get(i));
    }
} Scanner sc = new Scanner(in); sc new Scanner(in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int m = Integer.parseInt(sc.next()); m Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] a=new int[m]; a new int[m] m int[] b=new int[m]; b new int[m] m HashMap<Integer,Integer> map=new HashMap<>(); map new HashMap<>() for (int i = 0; i < m; i++) {
    a[i]=Integer.parseInt(sc.next());
    b[i]=Integer.parseInt(sc.next());
} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
    a[i]=Integer.parseInt(sc.next());
    b[i]=Integer.parseInt(sc.next());
} {
    a[i]=Integer.parseInt(sc.next());
    b[i]=Integer.parseInt(sc.next());
} a[i]=Integer.parseInt(sc.next()) a[i] a i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc b[i]=Integer.parseInt(sc.next()) b[i] b i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc for (int i = 1; i <= n; i++) {
        map.put(i, 0);
    } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
        map.put(i, 0);
    } {
        map.put(i, 0);
    } map.put(i, 0) map.put map i 0 for (int i = 0; i < m; i++) {
        int c=map.get(a[i])+1;
        map.put(a[i], c);
        c=map.get(b[i])+1;
        map.put(b[i], c);
    } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
        int c=map.get(a[i])+1;
        map.put(a[i], c);
        c=map.get(b[i])+1;
        map.put(b[i], c);
    } {
        int c=map.get(a[i])+1;
        map.put(a[i], c);
        c=map.get(b[i])+1;
        map.put(b[i], c);
    } int c=map.get(a[i])+1; c map.get(a[i])+1 map.get(a[i]) map.get map a[i] a i 1 map.put(a[i], c) map.put map a[i] a i c c=map.get(b[i])+1 c map.get(b[i])+1 map.get(b[i]) map.get map b[i] b i 1 map.put(b[i], c) map.put map b[i] b i c for (int i = 1; i <= n; i++) {
        out.println(map.get(i));
    } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
        out.println(map.get(i));
    } {
        out.println(map.get(i));
    } out.println(map.get(i)) out.println out map.get(i) map.get map i String[] args args public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(in);
    int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());
int[] a=new int[m];
int[] b=new int[m];
HashMap<Integer,Integer> map=new HashMap<>();
for (int i = 0; i < m; i++) {
    a[i]=Integer.parseInt(sc.next());
    b[i]=Integer.parseInt(sc.next());
}
    for (int i = 1; i <= n; i++) {
        map.put(i, 0);
    }
    for (int i = 0; i < m; i++) {
        int c=map.get(a[i])+1;
        map.put(a[i], c);
        c=map.get(b[i])+1;
        map.put(b[i], c);
    }
    for (int i = 1; i <= n; i++) {
        out.println(map.get(i));
    }
}
} public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(in);
    int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());
int[] a=new int[m];
int[] b=new int[m];
HashMap<Integer,Integer> map=new HashMap<>();
for (int i = 0; i < m; i++) {
    a[i]=Integer.parseInt(sc.next());
    b[i]=Integer.parseInt(sc.next());
}
    for (int i = 1; i <= n; i++) {
        map.put(i, 0);
    }
    for (int i = 0; i < m; i++) {
        int c=map.get(a[i])+1;
        map.put(a[i], c);
        c=map.get(b[i])+1;
        map.put(b[i], c);
    }
    for (int i = 1; i <= n; i++) {
        out.println(map.get(i));
    }
}
} Main
import java.util.*;
import static java.lang.System.*;
import static java.lang.Math.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(in);
    int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());
int[] a=new int[m];
int[] b=new int[m];
HashMap<Integer,Integer> map=new HashMap<>();
for (int i = 0; i < m; i++) {
    a[i]=Integer.parseInt(sc.next());
    b[i]=Integer.parseInt(sc.next());
}
    for (int i = 1; i <= n; i++) {
        map.put(i, 0);
    }
    for (int i = 0; i < m; i++) {
        int c=map.get(a[i])+1;
        map.put(a[i], c);
        c=map.get(b[i])+1;
        map.put(b[i], c);
    }
    for (int i = 1; i <= n; i++) {
        out.println(map.get(i));
    }
}
}
