#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  string s;
  cin >> s;
  if (s[a] != '-')
    cout << "No" << endl;
  else {
    for (int i = 0; i < a; ++i) {
      if (s[i] != '1', '2', '3', '4', '5', '6', '7', '8', '9')
        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;
        }
      }
    }
  }
}
