#include<bits/stdc++.h>
#include<string>
using namespace std;
int main(){
  int a, b; cin >> a >> b;
  string s; cin >> s;
  for(int i = 0; i <=a; ++i){
    if(!( s[a] >= 0 && s[a] <= '9')) cout << "No" << endl;
    else {
      if(s[a] != '-') cout << "No" << endl;
      else {
        for(int i = a+1; i <= a+b; ++i){
            if(!(s[i] >= '0' && s[i] <= '9')) cout << "No" << endl;
            else cout << "Yes" << endl;
        }
      }
    }
  }
}