#include<iostream>
#include<algorithm>
#include<stdio.h>
#include<string>
#include<cmath>
#include<vector>
#include<queue>
#include<stack>
#include<functional>
#include<map>
using namespace std;
typedef long long ll;
int main()
{
	string a;
	int a,b,i,j,k,no;
	cin>>a>>b;
	for(i=0;i<a;i++)
		if(s[i]<'0'||s[i]>'9')no=1;
	if(s[a]!='-')no=1;
	for(i=a+1;i<a+b+1;i++)
		if(s[i]<'0'||s[i]>'9')no=1;
	if(no)cout<<"No"<<endl;
	else cout<<"Yes"<<endl;
	return 0;
}