# coding: utf-8
# Your code here!
a,b=map(int,input().split())
S=list(input())
ans='Yes'
for i in range(a+b):
    if i==a:
        if S[i]!='-':
            ans='No'
            break
        else:
            continue
    if S[i]=='0'or S[i]=='1' or S[i]=='2'or S[i]=='3' or S[i]=='4'or S[i]=='5' or S[i]=='6'or S[i]=='7' or S[i]=='8'or S[i]=='9':
        continue
    else:
        ans='No'
        break
print(ans)
print(S)