import java.util.Scanner; public class No1020 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); String str = sc.next(); char[] c = str.toCharArray(); for(int i=0;i<=(n-k);i++) { char[] newC = c.clone(); System.out.println(newC); for(int j=0;j