a,b = map(int,input().split())
s = list(input())
if s[a] == "-":
    s.remove(s[a])

ls = "0123456789"
c = 0
for i in s:
    if i in ls:
        c += 1
        
if c == a+b:
    print("Yes")
else:
    print("No")