#include <bits/stdc++.h>
using namespace std;

int main(){
  int a, b;
  string s;
  cin >> a >> b >> s;
  for (int i=0; i<a+b; i++){
    if (s[i] == "-"){
      if(i != a){
        cout << "No" << endl;
      }
    }
    cout << "Yes" << end;
  }
}
