#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  string s;
  cin >> a >> b >> s;
  int ssize = s.size();
  if (ssize == 8) {
    if ((s[0] != '-' && s[1] != '-') && s[2] != '-') {
      if (s[3] == '-') {
        if (s[4] != '-' && s[5] != '-' && s[6] != '-' && s[7] != '-') {
          cout << "Yes" << endl;
          return 0;
        }
      }
    }
  }
  cout << "No" << endl;
  return 0;
}
