A,B = [int(x) for x in input().split()]
S = input()
for i in range(A+B+1):
  if i==A and S[i]!="-":
    print("No")
    exit()
  if i!=A and S[i]=="-" or int(S[i])>=10:
    print("No")
    exit()
print("Yes")