import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String a = in.nextLine(); int b = in.nextInt(); int gc = 0; String tmp = a.substring(0, b); for (int i = 0; i < b; i++...