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