#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";
}
I2luY2x1ZGU8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBtYWluKCkgewogICBpbnQgeCx5OwogICBjaW4+Png+Pnk7CiAgIHN0cmluZyBzOwogICBjaW4+PnM7CiAgIGlmIChzW3hdID09Jy0nICYmIHMubGVuZ3RoKCkgPT0geCt5KzEpIGNvdXQ8PCJZZXMiOwogICBlbHNlIGNvdXQ8PCJObyI7Cn0=