#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, string>;
int main() {
  int a, b;
  cin >> a >> b;
  string s;
  bool ans = true;
  for (int i = 0; i < (int)(s.size()); i++) {
    if (i != a && s.at(i) == '-')
      ans = false;
    else if (i == a && s.at(i) != '-')
      ans = false;
  }
  cout << (ans ? "Yes" : "No") << endl;
}
