i,t;char s['~~'];main(n){for(gets(s+scanf("%*d%d ",&i)),n=t=s[i]*2-81;t+=s[i-=n]*2-81;);t=!printf("%d",i);}