#include int st[10000],h=0,N,K; int main(){ std::cin>>N>>K; for(int i=0;i>c; if(c=='(')st[h++]=i+1; else if(i+1==K){std::cout<