#include <iostream>
#include <string>
using namespace std;

int main(){
    int a, b;
    cin >> a >> b;
    string s;
    cin >> s;
    string ans = "Yes";
    for(int i = 0; i < a; i++){
        if(!(s[i] >= '0' && s[i] <= '9')) ans = "No";
    }
    if(s[a] != '-') ans = "No";
    for(int i = a+1; i < a+b+1; i++){
        if(!(s[i] >= '0' && s[i] <= '9')) ans = "No";
    }
    cout << ans << endl;
    return 0;
}
#include<stdio.h>

int main()
{
    int A, B;
    scanf("%d %d", &A, &B);
    int size = A + B + 1;
    
    char str[100];
    scanf("%s", str);
    
    int i, count = 0;
    
    if (str[A] == '-')
    {
        for (i = 0; i < size; i++)
        {
            if (str[i] >= '0' && str[i] <= '9')
            {
                count++;
            }
        }
        
        if (count == size - 1)
        {
            printf("Yes\n");
        }
        
        else
        {
            printf("No\n");
        }
    }
    
    else
    {
        printf("No\n");
    }
    
    return 0;
}