package yukicoder; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; public class Q1191 { public static void main(String[] args) { new Q1191().solver(); } void solver() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); assert 1[] g = new ArrayList[n]; for (int i = 0; i < n; i++) { g[i] = new ArrayList<>(); } for (int i = 0; i < m; i++) { int src = sc.nextInt(); int dst = sc.nextInt(); assert src!=dst; assert 0<=src&&src