#include <stdio.h>
#include <string.h>

int main() {
    int a, b, c = 0;
    char pscode[50];
    scanf("%d %d", &a, &b);
    scanf("%s", &pscode);
    for (int i = 0; i < strlen(pscode); i++) {
        if (pscode[a] != '-') {
            printf("No");
            return 0;
        }
        if (pscode[i] >= '0' && pscode[i] <= '9') {
            c++;
        }
    }
    if (c != (a+b)) {
        printf("No");
        return 0;
    }
    printf("Yes");
}
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <stdio.h>
#include <queue>
#include <climits>
#include <map>
#include <set>
const int mod = 1e9 + 7;
const int inf = 1 << 20;
const long long INF = 1LL << 60;
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
using namespace std;


int main()
{
    int n,h,w;
    cin >> n >> h >> w;
    cout << (n-h+1)*(n-w+1);
}
