#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  string s;
  cin >> a >> b;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[a + 1] == '-') {
      for (int j = 0; j < s.size(); j++) {
        if ('0' <= s[i] && s[i] <= '9') cout << "Yes" << endl;
      }
    } else {
      cout << "No" << endl;
      break;
    }
  }
}
