import java.util.*;

public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    String S = sc.next();
    int wrong =0,count =0;
    char [] number = new char[10];
    char c = '0';
    for (int i = 0; i <10 ; i++){
      number[i] = c++;
    }
    if (S.charAt(A) == '-') {
      for (int i=0; i<S.length(); i++) {
        for (int j=0; j<10; j++) {
          if (S.charAt(i) == number[j]) count++;
        }
      }
    }   
    if(count == S.length() -1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    String S = sc.next();
    int wrong =0,count =0;
    char [] number = new char[10];
    char c = '0';
    for (int i = 0; i <10 ; i++){
      number[i] = c++;
    }
    if (S.charAt(A) == '-') {
      for (int i=0; i<S.length(); i++) {
        for (int j=0; j<10; j++) {
          if (S.charAt(i) == number[j]) count++;
        }
      }
    }   
    if(count == S.length() -1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    String S = sc.next();
    int wrong =0,count =0;
    char [] number = new char[10];
    char c = '0';
    for (int i = 0; i <10 ; i++){
      number[i] = c++;
    }
    if (S.charAt(A) == '-') {
      for (int i=0; i<S.length(); i++) {
        for (int j=0; j<10; j++) {
          if (S.charAt(i) == number[j]) count++;
        }
      }
    }   
    if(count == S.length() -1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    String S = sc.next();
    int wrong =0,count =0;
    char [] number = new char[10];
    char c = '0';
    for (int i = 0; i <10 ; i++){
      number[i] = c++;
    }
    if (S.charAt(A) == '-') {
      for (int i=0; i<S.length(); i++) {
        for (int j=0; j<10; j++) {
          if (S.charAt(i) == number[j]) count++;
        }
      }
    }   
    if(count == S.length() -1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc String S = sc.next(); S sc.next() sc.next sc int wrong =0 wrong 0 count =0; count 0 char [] number = new char[10]; number new char[10] 10 char c = '0'; c '0' for (int i = 0; i <10 ; i++){
      number[i] = c++;
    } int i = 0; int i = 0; i 0 i <10 i 10 i++ i++ i {
      number[i] = c++;
    } {
      number[i] = c++;
    } number[i] = c++ number[i] number i c++ c if (S.charAt(A) == '-') {
      for (int i=0; i<S.length(); i++) {
        for (int j=0; j<10; j++) {
          if (S.charAt(i) == number[j]) count++;
        }
      }
    } S.charAt(A) == '-' S.charAt(A) S.charAt S A '-' {
      for (int i=0; i<S.length(); i++) {
        for (int j=0; j<10; j++) {
          if (S.charAt(i) == number[j]) count++;
        }
      }
    } for (int i=0; i<S.length(); i++) {
        for (int j=0; j<10; j++) {
          if (S.charAt(i) == number[j]) count++;
        }
      } int i=0; int i=0; i 0 i<S.length() i S.length() S.length S i++ i++ i {
        for (int j=0; j<10; j++) {
          if (S.charAt(i) == number[j]) count++;
        }
      } {
        for (int j=0; j<10; j++) {
          if (S.charAt(i) == number[j]) count++;
        }
      } for (int j=0; j<10; j++) {
          if (S.charAt(i) == number[j]) count++;
        } int j=0; int j=0; j 0 j<10 j 10 j++ j++ j {
          if (S.charAt(i) == number[j]) count++;
        } {
          if (S.charAt(i) == number[j]) count++;
        } if (S.charAt(i) == number[j]) count++; S.charAt(i) == number[j] S.charAt(i) S.charAt S i number[j] number j count++ count if(count == S.length() -1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } count == S.length() -1 count S.length() -1 S.length() S.length S 1 {
      System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
      System.out.println("No");
    } System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    String S = sc.next();
    int wrong =0,count =0;
    char [] number = new char[10];
    char c = '0';
    for (int i = 0; i <10 ; i++){
      number[i] = c++;
    }
    if (S.charAt(A) == '-') {
      for (int i=0; i<S.length(); i++) {
        for (int j=0; j<10; j++) {
          if (S.charAt(i) == number[j]) count++;
        }
      }
    }   
    if(count == S.length() -1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
} public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    String S = sc.next();
    int wrong =0,count =0;
    char [] number = new char[10];
    char c = '0';
    for (int i = 0; i <10 ; i++){
      number[i] = c++;
    }
    if (S.charAt(A) == '-') {
      for (int i=0; i<S.length(); i++) {
        for (int j=0; j<10; j++) {
          if (S.charAt(i) == number[j]) count++;
        }
      }
    }   
    if(count == S.length() -1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    String S = sc.next();
    int wrong =0,count =0;
    char [] number = new char[10];
    char c = '0';
    for (int i = 0; i <10 ; i++){
      number[i] = c++;
    }
    if (S.charAt(A) == '-') {
      for (int i=0; i<S.length(); i++) {
        for (int j=0; j<10; j++) {
          if (S.charAt(i) == number[j]) count++;
        }
      }
    }   
    if(count == S.length() -1) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
}