A,B=(int(i) for i in input().split())
S=input()
if S[A]=='-':
  for i in range(A):
    if type(S[i])==int:
      for i in range(B):
        if type(S[i+A])==int:
          print("Yes")
        else:
          print("No")
    else:
      print("No")
else:
  print("No")