#include int main(){ int n,k;std::cin>>n>>k;k--; std::string s;std::cin>>s; int x=0,y; if(s.at(k)=='('){ for(int i=0;i=0;i--){ if(i==k)y=x; x+=s.at(i)=='('?1:-1; if(i