char s[9999];i,t;main(n){for(scanf("%*d%d\n",&i),gets(s+1),n=s[i]-40;t-1+n*2;t+=s[n?--i:++i]*2-81);t=!printf("%d",i);}