#include <stdio.h>
 
void main(){
  char c[12];
  int a,b,i,x=0;
  scanf("%d%d",&a,&b);
  scanf("%s",c);
  for(i=0;i<=a+b;i++){
    if(i==a && c[i]=='-'){
      x +=1;
    }else if(i!=a && c[i]!='-'){
      x +=1;
    }
  }
  if(x==a+b+1){
    printf("Yes\n");
  }else{
    printf("No\n");
  }
  printf("%d\n",x);
  return 0;
}