import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); int k = sc.nextInt(); String s = sc.next(); //解説にあったimos法を使ってみる //配列に深さを代入 int[] ar = new int[n]; int depth = 1; int c1 = 0; ar[0] = depth; for (int i=1; i=0; i--) { if (ar[i]==c1) {System.out.println(i+1); break;} } } } }