The first line contains S and K separated by a space. Here S = technical and K = 3. The substrings of S are tec, hni and cal. The first substring is printed in the first line without any modification.