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