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