#include<bits/stdc++.h>
using namespace std;
int a,b,n,m;
char s;
int main()
{
	scanf("%d %d",&a,%b);
	scanf("%d%c%d",%n,&s,&m);
	if(s=='-')
	{
		printf("Yes");
	}
	else
	{
		printf("No");
	}
	return 0;
}