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