A, B = map(int, input().split())
S = input()
if S[A] == '-' and A+B+1 == len(S):
    S = a[:A]+a[A+1:]
    try:
        S = int(S)
        print('Yes')
    except:
        print('No')
else:
    print('No')