#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int A, B;
  string S;
  cin >> S;
  if (A < 1 || B > 5) {
    cout << "No" << endl;
    return 0;
  }
  if (S.find("-") != A + 1) {
    cout << "No" << endl;
    return 0;
  }
  if (S.length() == A + B + 1) {
    cout << "Yes" << endl;
  }
}
