a, b = map(int, input().split())
s = input()

ans = True

for (i, char) in enumerate(s):
    if i == a:
        ans = char == '-'
    else:
        ans = type(char) is int

if ans:
    print('yes')
else:
    print('no')
