from collections import deque d=deque() N,M=map(int, input().split()) S=input() A=[] cnt=0 for s in S: if s=='(': d.append('(') else: if d[-1]=='(': d.append('1') d.append('+') d.append('1') cnt+=2 d.append(')') ans=[] while d: c=d.popleft() if len(ans)==0: ans.append(c) else: if ans[-1]==')' and c=='(': ans.append('+') elif ans[-1]=='(' and c=='(': ans.append('1') ans.append('+') cnt+=1 ans.append(c) if cnt>M: print('No') else: for i in range(M-cnt): ans.append('+1') print('Yes') print(''.join(ans))