import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String[] line = sc.nextLine().split(" "); int n = Integer.parseInt(line[0]); int edgesNum = Integer.parseInt(line[1]); int[][] arr = new int...