#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] == 1, 2, 3, 4, 5, 6, 7, 8, 9)
            cout << "Yes" << endl;
          else
            cout << "No" << endl;
        }
      }
    }
  }
}
