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();
    String AS = S.substring(0,A);
    String haihun = S.substring(A,A+1);
    String BS = S.substring(A+1,A+B+1);

    if(!isNumber(AS)||!isNumber(BS)){
      System.out.println("No");
      return;
    }
    if(!haihun.equals("-")){
      System.out.println("No");
      return;
    }
    
    System.out.println("Yes");
    
  }
  

  public static boolean isNumber(String num) {
    try {
        Integer.parseInt(num);
        return true;
        } catch (NumberFormatException e) {
        return false;
    }
}
} 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();
    String AS = S.substring(0,A);
    String haihun = S.substring(A,A+1);
    String BS = S.substring(A+1,A+B+1);

    if(!isNumber(AS)||!isNumber(BS)){
      System.out.println("No");
      return;
    }
    if(!haihun.equals("-")){
      System.out.println("No");
      return;
    }
    
    System.out.println("Yes");
    
  }
  

  public static boolean isNumber(String num) {
    try {
        Integer.parseInt(num);
        return true;
        } catch (NumberFormatException e) {
        return false;
    }
}
} 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();
    String AS = S.substring(0,A);
    String haihun = S.substring(A,A+1);
    String BS = S.substring(A+1,A+B+1);

    if(!isNumber(AS)||!isNumber(BS)){
      System.out.println("No");
      return;
    }
    if(!haihun.equals("-")){
      System.out.println("No");
      return;
    }
    
    System.out.println("Yes");
    
  } main {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    String S = sc.next();
    String AS = S.substring(0,A);
    String haihun = S.substring(A,A+1);
    String BS = S.substring(A+1,A+B+1);

    if(!isNumber(AS)||!isNumber(BS)){
      System.out.println("No");
      return;
    }
    if(!haihun.equals("-")){
      System.out.println("No");
      return;
    }
    
    System.out.println("Yes");
    
  } 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 String AS = S.substring(0,A); AS S.substring(0,A) S.substring S 0 A String haihun = S.substring(A,A+1); haihun S.substring(A,A+1) S.substring S A A+1 A 1 String BS = S.substring(A+1,A+B+1); BS S.substring(A+1,A+B+1) S.substring S A+1 A 1 A+B+1 A+B+1 A B 1 if(!isNumber(AS)||!isNumber(BS)){
      System.out.println("No");
      return;
    } !isNumber(AS)||!isNumber(BS) !isNumber(AS) isNumber(AS) isNumber AS !isNumber(BS) isNumber(BS) isNumber BS {
      System.out.println("No");
      return;
    } System.out.println("No") System.out.println System.out System System.out "No" return; if(!haihun.equals("-")){
      System.out.println("No");
      return;
    } !haihun.equals("-") haihun.equals("-") haihun.equals haihun "-" {
      System.out.println("No");
      return;
    } System.out.println("No") System.out.println System.out System System.out "No" return; System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public static boolean isNumber(String num) {
    try {
        Integer.parseInt(num);
        return true;
        } catch (NumberFormatException e) {
        return false;
    }
} isNumber {
    try {
        Integer.parseInt(num);
        return true;
        } catch (NumberFormatException e) {
        return false;
    }
} try {
        Integer.parseInt(num);
        return true;
        } catch (NumberFormatException e) {
        return false;
    } catch (NumberFormatException e) {
        return false;
    } NumberFormatException e {
        return false;
    } return false; false {
        Integer.parseInt(num);
        return true;
        } Integer.parseInt(num) Integer.parseInt Integer num return true; true String num num 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();
    String AS = S.substring(0,A);
    String haihun = S.substring(A,A+1);
    String BS = S.substring(A+1,A+B+1);

    if(!isNumber(AS)||!isNumber(BS)){
      System.out.println("No");
      return;
    }
    if(!haihun.equals("-")){
      System.out.println("No");
      return;
    }
    
    System.out.println("Yes");
    
  }
  

  public static boolean isNumber(String num) {
    try {
        Integer.parseInt(num);
        return true;
        } catch (NumberFormatException e) {
        return false;
    }
}
} 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();
    String AS = S.substring(0,A);
    String haihun = S.substring(A,A+1);
    String BS = S.substring(A+1,A+B+1);

    if(!isNumber(AS)||!isNumber(BS)){
      System.out.println("No");
      return;
    }
    if(!haihun.equals("-")){
      System.out.println("No");
      return;
    }
    
    System.out.println("Yes");
    
  }
  

  public static boolean isNumber(String num) {
    try {
        Integer.parseInt(num);
        return true;
        } catch (NumberFormatException e) {
        return false;
    }
}
} 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();
    String AS = S.substring(0,A);
    String haihun = S.substring(A,A+1);
    String BS = S.substring(A+1,A+B+1);

    if(!isNumber(AS)||!isNumber(BS)){
      System.out.println("No");
      return;
    }
    if(!haihun.equals("-")){
      System.out.println("No");
      return;
    }
    
    System.out.println("Yes");
    
  }
  

  public static boolean isNumber(String num) {
    try {
        Integer.parseInt(num);
        return true;
        } catch (NumberFormatException e) {
        return false;
    }
}
}