import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) throws FileNotFoundException { long t = System.currentTimeMillis(); new Main().run(); System.err.println(System.currentTimeMillis() - t); } final long MOD=(long)1e9+7; void run() { Scanner sc = new Scanner(); int N=sc.nextInt(); int M=sc.nextInt(); char[] cs=sc.next().toCharArray(); ArrayList[] g=new ArrayList[N]; for(int i=0;i(); for(int i=0;i