#include<iostream>
using namespace std;
int main() {
   int x,y;
   cin>>x>>y;
   string s;
   cin>>s;
   if (s[x] =='-' && s.length() == x+y+1) cout<<"Yes";
   else cout<<"No";
}