#include<iostream>
using namespace std;

int main(){
 int a, b;
 cin >> a >> b >> endl;
 string s[];
 cin >> s;
 if(s[3]=="-"){
 	cout << "Yes" << endl;
 }else{
   	cout << "No" << endl; 
 }
  
  
  return 0;
}