import sys

A,B = map(int, input().split())
S = input()

str_len = len(S)

for i in range(str_len):

    a = S[i]
    if i==A:
        break
    if str.isdecimal(a)==False:
        print("No")
        sys.exit()
print("Yes")
