#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using dll = deque<ll>;
using pll = pair<ll, ll>;
using qll = queue<ll>;
using usll = unordered_set<ll>;
using umll = unordered_map<ll, ll>;
using sll = stack<int>;
using vll = vector<ll>;
using vvll = vector<vll>;
constexpr ll kMod = 1e9 + 7;
ll gcd(ll a, ll b) {
  if (a < b) {
    return gcd(b, a);
  }
  ll c = a % b;
  while (c != 0) {
    a = b;
    b = c;
    c = a % b;
  }
  return b;
}
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }
void init() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(15);
}
int main() {
  init();
  ll A, B;
  cin >> A >> B;
  string S;
  cin >> S;
  const char* s = S.c_str();
  if (S.size() != A + B + 1) {
    cout << "No" << endl;
    return 0;
  }
  for (ll(i) = (0); (i) < (S.size()); (i)++) {
    if (i == A) {
      if (s[i] != '-') {
        cout << "No" << endl;
        return 0;
      }
    } else {
      if (s[i] != '0' || s[i] != '1' || s[i] != '2' || s[i] != '3' ||
          s[i] != '4' || s[i] != '5' || s[i] != '6' || s[i] != '7' ||
          s[i] != '8' || s[i] != '9') {
        cout << "No" << endl;
        return 0;
      }
    }
  }
  cout << "Yes" << endl;
  return 0;
}
