#include using namespace std; //#include //using namespace atcoder; using ll=long long; using Graph=vector>; #define MAX 1000000 #define MOD 1000000007 //#define MOD 998244353 #define INF 1000000000 //#define INF 1000000000000000000 int main(){ int N,K; string S; cin>>N>>K>>S; int i=K-1; int x=0; if(S[i]=='('){ while(true){ if(S[i]=='('){ x++; }else{ x--; } if(x==0){ cout<