import java.util.*; import java.io.*; public class Main{ static final Reader sc = new Reader(); static final PrintWriter out = new PrintWriter(System.out,false); static HashMap map = new HashMap(); public static void main(String[] args) throws Exception { int n = sc.nextInt(); int k = sc.nextInt(); String str = sc.next(); boolean[] flag = new boolean[n]; func(str,0,flag); out.println(map.get(k-1)+1); out.flush(); sc.close(); out.close(); } static void func(String str,int now,boolean[] flag){ for(int i=1;i+now