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

int A, B; string S;
#define yes "Yes"
#define no "No"

int check(char c) { return '0' <= c and c <= '9'; }

string solve() {
  	
    if (S[A] != '-')  
	  if (sizeof(S) = (A+B+1)) {
        if ( 1 <= A )
		  if ( B <= 5) {
            for (int i=0; i<(A+B+1); i++)
    	  	  if (check(S[i])) return yes;
      	  	  else no;
    }
  	return no;
}

void main() {
    cin >> A >> B >> S;
    cout << solve() << endl;
}

