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