import java.util.Scanner; public class Main0100 { public static void main(String[] args) { Main0100 p = new Main0100(); } public Main0100() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int[] x = new int[k]; int[] y = new int[k]; for (int i = 0; i < x.length; i++){ x[i] = sc.nextInt()-1; y[i] = sc.nextInt()-1; } solve(n, x, y); } public void solve(int n, int[] x, int[] y) { int[] a = new int[n]; int[] b = new int[n]; for(int i=0;i