#include #include #include #include #include #include #include #include #define REP(i,k,n) for(int i=k;i P; int main() { int n,k; cin >> n >> k; string s; cin >> s; int ans = 0, cnt = 0; rep(i,k) { if(cnt > 0) { cnt--; } else { ans++; } cnt += s[i%s.size()] - '0'; } cout << ans << endl; return 0; }