# include <iostream>
using namespace std;

int main(){
	int a, b;
	string s;
  	cin >> a >> b >> s;
  
  	if(s.length() == a+b+1 && s[a+1] == '-'){
      cout << "Yes" << endl;
    }else{
      cout << "No" << endl;
}