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

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