#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> (a);
  cin >> (b);
  string s;
  cin >> (s);
  int counter = 0;
  if (s[a] != '-') {
    cout << "No" << endl;
    return 0;
  }
  for (long long int i = 0; i < (s.size()); i++) {
    if (s[i] == '-') counter++;
  }
  cout << (counter) << endl;
  cout << (counter > 1 ? "No" : "Yes") << endl;
  return 0;
}
