I,O=input,print N,K=map(int,I().split()) b=d=p=0 E="" for c in I(): if c<')': d+=1;K-=1 if E and E[-1]==')':E+="+(1+" else:E+="(1+" else: d-=1;b|=d<0;p+=d==0 if E and E[-1]=='+':E+="1)";K-=1 else:E+=")" if K<0 or b|d|(K==0and p==1):exit(O("No")) O("Yes\n"+E+"+1"*K)