import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader stdReader =new BufferedReader(new InputStreamReader(System.in)); try { String[] elements = stdReader.readLine().split(" "); int N = Integer.parseInt(elements[0]); int K = Integer.parseInt(elements[1])-1; String c = stdReader.readLine(); int count = 0; if((""+c.charAt(K)).equals("(")){ for(int i=K;i