A, B = map(int, raw_input().split())
S = raw_input()
passed = True
for i in range(A+B+1):
    if i == A:
        if S[i] != '-':
            passed = False
            break
    else:
        if S[i] == '-':
            passed = False
            break
print "Yes" if passed else "No"