char b[60];c,s,p;main(n,k){for(scanf("%d%d%s",&n,&k,b);k--;p*=p!=n)s?s--:c++,s+=b[p++]-48;printf("%d",c);}