#include #include using namespace std; using namespace atcoder; using ll=long long; using ld=long double; using vll=vector; using pll=pair; using mint=modint; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll N,K,d=1; string S; cin>>N>>K>>S; K--; if(S[K]=='('){ for(int i=K+1;i=0;--i){ if(S[i]==')')d++; else d--; if(d==0){ cout<