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