import java.io.IOException; import java.util.NoSuchElementException; public class Main{ public static void main(String[] args){ FastScanner sc = new FastScanner(); int N = sc.nextInt(); int M = sc.nextInt(); int ans = 0; for(int i=0;i