#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int A, B;
  string S;
  bool flag = true;
  cin >> A >> B;
  for (int i = 0; i <= A + B; i++) {
    if ((i == A && S[i] != '-') || (i != A && S[i] == '-')) {
      flag = false;
      break;
    }
  }
  cout << ((flag) ? "Yes" : "No") << endl;
  return 0;
}
