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