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