#include <iostream>
#include <string>
using namespace std;

int main(){
	int s;
	int count = 0;
	int index;
	cin >> s;
	for(int i=0; i<s.size(); i++){
		if(s[i] =='-') {
			count++;
			index = i;
		}
	}
	if(count == 1 && i != 0 && i != s.size () - 1)
		cout << "Yes";
	else
		cout << "No";
	return 0;
}