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

if s[a] == '-':
    for i in range(a):
        if 0 <= int(s[i]) <= 9:
            for j in range(a+1,a+b+2):
                if 0 <= int(s[i]) <= 9:
                    print('Yes')
                    break
        break
    
else:
    print('No')
        