#include <bits/stdc++.h>
using namespace std;
int main(void){
    // Your code here!
    int a,b;
    string s;
    cin>>a>>b>>s;
    if(s[a]=='-'){
            cout<<"Yes"<<endll;
    }
    else{
            cout<<"No"<<endl;
    }
}