#include <iostream>
#include <string>
using namespace std;
int main(){
  int a,b;
  string s;
  cin >> a >> b;
  cin >> s;
  if(s.compare(a+1,1,"-")=="-"){
    cout << "Yes";
  }else{
    cout << "No";
  }
  return 0;
}
  
