import java.util.*; public class Dna{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); int l,n,res; l = sc.nextInt(); n = sc.nextInt(); String[] s = new String[n]; for(int i = 0;i