N,K=map(int,input().split()) S=input() sm=0 depth=0 mx_depth=0 ans=[] for i,s in enumerate(S): if s=="(": if i>0 and S[i-1]==")":ans.append("+") ans.append(s) depth+=1 mx_depth+=1 else: if depth==mx_depth:ans.append("1+1"+s);sm+=2 else:ans.append("+1"+s);sm+=1 depth-=1 if depth==0:mx_depth=0 if sm>K:exit(print("No")) if sm==K: print("Yes") print("".join(ans)) else: while sm