import java.util.Scanner;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Map;
import java.util.HashMap;


public class Main
{
    int n, m;
    int a[] = new int[51];
    
    public static void main(String args[])
    {
	new Main().solve();
    }
    
    void solve()
    {
	in();
	
	out();
    }

    void in()
    {
	Scanner sc = new Scanner(System.in);

	n = sc.nextInt();
	m = sc.nextInt();

	int f, t;
	for(int i = 0; i < m; i++) {
	    f = sc.nextInt(); a[f]++;
	    t = sc.nextInt(); a[t]++;
	}
    }

    void out()
    {
	for(int i = 1; i <= n; i++) out(a[i]);
    }
    
    void out(int ans)
    {
	System.out.println(ans);
    }
    
    void out(String ans)
    {
	System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Map; Map java.util import java.util.HashMap; HashMap java.util public class Main
{
    int n, m;
    int a[] = new int[51];
    
    public static void main(String args[])
    {
	new Main().solve();
    }
    
    void solve()
    {
	in();
	
	out();
    }

    void in()
    {
	Scanner sc = new Scanner(System.in);

	n = sc.nextInt();
	m = sc.nextInt();

	int f, t;
	for(int i = 0; i < m; i++) {
	    f = sc.nextInt(); a[f]++;
	    t = sc.nextInt(); a[t]++;
	}
    }

    void out()
    {
	for(int i = 1; i <= n; i++) out(a[i]);
    }
    
    void out(int ans)
    {
	System.out.println(ans);
    }
    
    void out(String ans)
    {
	System.out.println(ans);
    }
} Main int n n m; m int a[] = new int[51]; a new int[51] 51 public static void main(String args[])
    {
	new Main().solve();
    } main {
	new Main().solve();
    } new Main().solve() new Main().solve new Main() String args[] args void solve()
    {
	in();
	
	out();
    } solve {
	in();
	
	out();
    } in() in out() out void in()
    {
	Scanner sc = new Scanner(System.in);

	n = sc.nextInt();
	m = sc.nextInt();

	int f, t;
	for(int i = 0; i < m; i++) {
	    f = sc.nextInt(); a[f]++;
	    t = sc.nextInt(); a[t]++;
	}
    } in {
	Scanner sc = new Scanner(System.in);

	n = sc.nextInt();
	m = sc.nextInt();

	int f, t;
	for(int i = 0; i < m; i++) {
	    f = sc.nextInt(); a[f]++;
	    t = sc.nextInt(); a[t]++;
	}
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc m = sc.nextInt() m sc.nextInt() sc.nextInt sc int f f t; t for(int i = 0; i < m; i++) {
	    f = sc.nextInt(); a[f]++;
	    t = sc.nextInt(); a[t]++;
	} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
	    f = sc.nextInt(); a[f]++;
	    t = sc.nextInt(); a[t]++;
	} {
	    f = sc.nextInt(); a[f]++;
	    t = sc.nextInt(); a[t]++;
	} f = sc.nextInt() f sc.nextInt() sc.nextInt sc a[f]++ a[f] a f t = sc.nextInt() t sc.nextInt() sc.nextInt sc a[t]++ a[t] a t void out()
    {
	for(int i = 1; i <= n; i++) out(a[i]);
    } out {
	for(int i = 1; i <= n; i++) out(a[i]);
    } for(int i = 1; i <= n; i++) out(a[i]); int i = 1; int i = 1; i 1 i <= n i n i++ i++ i out(a[i]); out(a[i]) out a[i] a i void out(int ans)
    {
	System.out.println(ans);
    } out {
	System.out.println(ans);
    } System.out.println(ans) System.out.println System.out System System.out ans int ans ans void out(String ans)
    {
	System.out.println(ans);
    } out {
	System.out.println(ans);
    } System.out.println(ans) System.out.println System.out System System.out ans String ans ans public class Main
{
    int n, m;
    int a[] = new int[51];
    
    public static void main(String args[])
    {
	new Main().solve();
    }
    
    void solve()
    {
	in();
	
	out();
    }

    void in()
    {
	Scanner sc = new Scanner(System.in);

	n = sc.nextInt();
	m = sc.nextInt();

	int f, t;
	for(int i = 0; i < m; i++) {
	    f = sc.nextInt(); a[f]++;
	    t = sc.nextInt(); a[t]++;
	}
    }

    void out()
    {
	for(int i = 1; i <= n; i++) out(a[i]);
    }
    
    void out(int ans)
    {
	System.out.println(ans);
    }
    
    void out(String ans)
    {
	System.out.println(ans);
    }
} public class Main
{
    int n, m;
    int a[] = new int[51];
    
    public static void main(String args[])
    {
	new Main().solve();
    }
    
    void solve()
    {
	in();
	
	out();
    }

    void in()
    {
	Scanner sc = new Scanner(System.in);

	n = sc.nextInt();
	m = sc.nextInt();

	int f, t;
	for(int i = 0; i < m; i++) {
	    f = sc.nextInt(); a[f]++;
	    t = sc.nextInt(); a[t]++;
	}
    }

    void out()
    {
	for(int i = 1; i <= n; i++) out(a[i]);
    }
    
    void out(int ans)
    {
	System.out.println(ans);
    }
    
    void out(String ans)
    {
	System.out.println(ans);
    }
} Main
import java.util.Scanner;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Map;
import java.util.HashMap;


public class Main
{
    int n, m;
    int a[] = new int[51];
    
    public static void main(String args[])
    {
	new Main().solve();
    }
    
    void solve()
    {
	in();
	
	out();
    }

    void in()
    {
	Scanner sc = new Scanner(System.in);

	n = sc.nextInt();
	m = sc.nextInt();

	int f, t;
	for(int i = 0; i < m; i++) {
	    f = sc.nextInt(); a[f]++;
	    t = sc.nextInt(); a[t]++;
	}
    }

    void out()
    {
	for(int i = 1; i <= n; i++) out(a[i]);
    }
    
    void out(int ans)
    {
	System.out.println(ans);
    }
    
    void out(String ans)
    {
	System.out.println(ans);
    }
}
