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

int main(){
  string S;
  int A,B;
  cin >> A >> B;
  bool ret = true;
  for(int i = 0; i < A; ++i){
    ret *= (S[i] != "-");
  }
  ret *= (S[A] == "-");
  for(int i = 0; i < B; ++i){
    ret *=(S[A+1+i] != "-");
  }
  if(ret) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
}