A, B = map(int, input().split())
S = input()
a = ['0','1','2','3','4','5','6','7','8','9']
for i in range(A+B):
    if (i == A and S[i] == '-') or (S[i] in a):
        continue
    else:
        print('No')
        exit()
print('Yes')