#include <bits/stdc++.h>
using namespace std;

int main() {
    int a, b;
    string s;
    cin >> a >> b >> s;

    string ans = "Yes";
    if (s.at(a) != '-') {
        ans = "No";
    }
    for (int i = 0; i < a+b+1; i++) {
        if (i == a) continue;
        if (s.at(i) == '-') ans = "No";
    }

    cout << ans << endl;

    return 0;
}

#include <iostream>
#include <cmath>
#include <cstdio>
using namespace std;
int main() {
    double P1x,P1y,P2x,P2y;
    cin >> P1x >> P1y >> P2x >> P2y;
    printf("%.8lf\n", sqrt((P1x-P2x)*(P1x-P2x)+(P1y-P2y)*(P1y-P2y)));
    return 0;
}