#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 (!(’0’<=s[i]&&s[i]<=’9’)){
    cout << "No" << endl; 
  }
    if (s[A]!=’-’){
    cout << "No" << endl;
  }
  for ( int i=A+1;i<=A+B;i++){
    if (!(’0’<=s[i]&&s[i]<=’9’)){
    cout << "No" << endl;
  }
  else cout << "Yes" << endl;
}