#include <bits/stdc++.h>
int main(void) {
  int A, B, i, num;
  char data[10];
  scanf("%d %d", &A, &B);
  scanf("%s", data);
  if (data[A] == '-') {
    num = 0;
    for (i = 0; i <= (A + B); i++) {
      if (data[i] >= '0' && data[i] <= '9') {
        num++;
        printf("%d\n", num);
      }
    }
    if (num == (A + B))
      printf("Yes");
    else
      printf("No");
  } else {
    printf("No");
  }
  return 0;
}
