n,k=gets.split a=[] t=[] gets.chomp.each_char.with_index(1){|c,i| if c==?( t<