A, B= [int(input() )for _ in range(2)]
S = str(input())

try:
    if type(int(S[:A]+S[A+1:]))!= int:
        print("No")
    elif S[A]!="-": 
        print('No')
    else:
        print('Yes')
except:
    print("No")