a,b = map(int,input().split())
l = list(input())


for i in range(a+1,a+b+1):
    if i == a:
        if l[a] != "-":
            print("No")
            exit()
    else:
        if l[i] == "-":
            print("No")
            exit()
print("Yes")  
  
