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[] sArray = s.split("");
        int i = 0;
      	for(i = 0; i < a;i++){
 		try {
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
          	System.exit(0);
   			}
        }
      	if(!sArray[a].equals("-")){
            System.out.println("No");
            System.exit(0);
          }
      	for(i = a + 1; i < a + b + 1;i++){
 		try { 
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
      	    System.exit(0);
   			}
        }
      	System.out.println("Yes");

	}
} 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[] sArray = s.split("");
        int i = 0;
      	for(i = 0; i < a;i++){
 		try {
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
          	System.exit(0);
   			}
        }
      	if(!sArray[a].equals("-")){
            System.out.println("No");
            System.exit(0);
          }
      	for(i = a + 1; i < a + b + 1;i++){
 		try { 
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
      	    System.exit(0);
   			}
        }
      	System.out.println("Yes");

	}
} 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[] sArray = s.split("");
        int i = 0;
      	for(i = 0; i < a;i++){
 		try {
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
          	System.exit(0);
   			}
        }
      	if(!sArray[a].equals("-")){
            System.out.println("No");
            System.exit(0);
          }
      	for(i = a + 1; i < a + b + 1;i++){
 		try { 
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
      	    System.exit(0);
   			}
        }
      	System.out.println("Yes");

	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		int b = sc.nextInt();
        String s = sc.next();
        String[] sArray = s.split("");
        int i = 0;
      	for(i = 0; i < a;i++){
 		try {
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
          	System.exit(0);
   			}
        }
      	if(!sArray[a].equals("-")){
            System.out.println("No");
            System.exit(0);
          }
      	for(i = a + 1; i < a + b + 1;i++){
 		try { 
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
      	    System.exit(0);
   			}
        }
      	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[] sArray = s.split(""); sArray s.split("") s.split s "" int i = 0; i 0 for(i = 0; i < a;i++){
 		try {
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
          	System.exit(0);
   			}
        } i = 0; i = 0 i 0 i < a i a i++ i++ i {
 		try {
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
          	System.exit(0);
   			}
        } {
 		try {
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
          	System.exit(0);
   			}
        } try {
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
          	System.exit(0);
   			} catch (NumberFormatException e) {
          	System.out.println("No");
          	System.exit(0);
   			} NumberFormatException e {
          	System.out.println("No");
          	System.exit(0);
   			} System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 {
        	Integer.parseInt(sArray[i]);
        	} Integer.parseInt(sArray[i]) Integer.parseInt Integer sArray[i] sArray i if(!sArray[a].equals("-")){
            System.out.println("No");
            System.exit(0);
          } !sArray[a].equals("-") sArray[a].equals("-") sArray[a].equals sArray[a] sArray a "-" {
            System.out.println("No");
            System.exit(0);
          } System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 for(i = a + 1; i < a + b + 1;i++){
 		try { 
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
      	    System.exit(0);
   			}
        } i = a + 1; i = a + 1 i a + 1 a 1 i < a + b + 1 i a + b + 1 a + b + 1 a b 1 i++ i++ i {
 		try { 
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
      	    System.exit(0);
   			}
        } {
 		try { 
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
      	    System.exit(0);
   			}
        } try { 
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
      	    System.exit(0);
   			} catch (NumberFormatException e) {
          	System.out.println("No");
      	    System.exit(0);
   			} NumberFormatException e {
          	System.out.println("No");
      	    System.exit(0);
   			} System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 { 
        	Integer.parseInt(sArray[i]);
        	} Integer.parseInt(sArray[i]) Integer.parseInt Integer sArray[i] sArray i System.out.println("Yes") System.out.println System.out System System.out "Yes" 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();
        String[] sArray = s.split("");
        int i = 0;
      	for(i = 0; i < a;i++){
 		try {
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
          	System.exit(0);
   			}
        }
      	if(!sArray[a].equals("-")){
            System.out.println("No");
            System.exit(0);
          }
      	for(i = a + 1; i < a + b + 1;i++){
 		try { 
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
      	    System.exit(0);
   			}
        }
      	System.out.println("Yes");

	}
} 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[] sArray = s.split("");
        int i = 0;
      	for(i = 0; i < a;i++){
 		try {
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
          	System.exit(0);
   			}
        }
      	if(!sArray[a].equals("-")){
            System.out.println("No");
            System.exit(0);
          }
      	for(i = a + 1; i < a + b + 1;i++){
 		try { 
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
      	    System.exit(0);
   			}
        }
      	System.out.println("Yes");

	}
} 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[] sArray = s.split("");
        int i = 0;
      	for(i = 0; i < a;i++){
 		try {
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
          	System.exit(0);
   			}
        }
      	if(!sArray[a].equals("-")){
            System.out.println("No");
            System.exit(0);
          }
      	for(i = a + 1; i < a + b + 1;i++){
 		try { 
        	Integer.parseInt(sArray[i]);
        	} catch (NumberFormatException e) {
          	System.out.println("No");
      	    System.exit(0);
   			}
        }
      	System.out.println("Yes");

	}
}