import java.util.*; class Yuki175{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int l = stdIn.nextInt(); int n = stdIn.nextInt(); String[] s = new String[n]; for(int i=0;i