#include <bits/stdc++.h>
using namespace std;
int main() {
  int A, B;
  cin >> A >> B;
  string s;
  cin >> s;
  if (s.at(A) == '-') {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
