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 str = sc.next();
	    char[] c = str.toCharArray();
	    for(int i=0; i<A+B+1; i++){
	    	if(i==A){
	    		if(!(String.valueOf(c[i]).equals("-"))){
	    			System.out.println("No");
	    			return;
	    		}
	    	}else{
	    		if(Character.isDigit(c[i])==false){
	    			System.out.println("No");
	    			return;
	    		}
	    	}
	    }

	    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 str = sc.next();
	    char[] c = str.toCharArray();
	    for(int i=0; i<A+B+1; i++){
	    	if(i==A){
	    		if(!(String.valueOf(c[i]).equals("-"))){
	    			System.out.println("No");
	    			return;
	    		}
	    	}else{
	    		if(Character.isDigit(c[i])==false){
	    			System.out.println("No");
	    			return;
	    		}
	    	}
	    }

	    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 str = sc.next();
	    char[] c = str.toCharArray();
	    for(int i=0; i<A+B+1; i++){
	    	if(i==A){
	    		if(!(String.valueOf(c[i]).equals("-"))){
	    			System.out.println("No");
	    			return;
	    		}
	    	}else{
	    		if(Character.isDigit(c[i])==false){
	    			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 str = sc.next();
	    char[] c = str.toCharArray();
	    for(int i=0; i<A+B+1; i++){
	    	if(i==A){
	    		if(!(String.valueOf(c[i]).equals("-"))){
	    			System.out.println("No");
	    			return;
	    		}
	    	}else{
	    		if(Character.isDigit(c[i])==false){
	    			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 str = sc.next(); str sc.next() sc.next sc char[] c = str.toCharArray(); c str.toCharArray() str.toCharArray str for(int i=0; i<A+B+1; i++){
	    	if(i==A){
	    		if(!(String.valueOf(c[i]).equals("-"))){
	    			System.out.println("No");
	    			return;
	    		}
	    	}else{
	    		if(Character.isDigit(c[i])==false){
	    			System.out.println("No");
	    			return;
	    		}
	    	}
	    } int i=0; int i=0; i 0 i<A+B+1 i A+B+1 A+B+1 A B 1 i++ i++ i {
	    	if(i==A){
	    		if(!(String.valueOf(c[i]).equals("-"))){
	    			System.out.println("No");
	    			return;
	    		}
	    	}else{
	    		if(Character.isDigit(c[i])==false){
	    			System.out.println("No");
	    			return;
	    		}
	    	}
	    } {
	    	if(i==A){
	    		if(!(String.valueOf(c[i]).equals("-"))){
	    			System.out.println("No");
	    			return;
	    		}
	    	}else{
	    		if(Character.isDigit(c[i])==false){
	    			System.out.println("No");
	    			return;
	    		}
	    	}
	    } if(i==A){
	    		if(!(String.valueOf(c[i]).equals("-"))){
	    			System.out.println("No");
	    			return;
	    		}
	    	}else{
	    		if(Character.isDigit(c[i])==false){
	    			System.out.println("No");
	    			return;
	    		}
	    	} i==A i A {
	    		if(!(String.valueOf(c[i]).equals("-"))){
	    			System.out.println("No");
	    			return;
	    		}
	    	} if(!(String.valueOf(c[i]).equals("-"))){
	    			System.out.println("No");
	    			return;
	    		} !(String.valueOf(c[i]).equals("-")) (String.valueOf(c[i]).equals("-")) String.valueOf(c[i]).equals String.valueOf(c[i]) String.valueOf String c[i] c i "-" {
	    			System.out.println("No");
	    			return;
	    		} System.out.println("No") System.out.println System.out System System.out "No" return; {
	    		if(Character.isDigit(c[i])==false){
	    			System.out.println("No");
	    			return;
	    		}
	    	} if(Character.isDigit(c[i])==false){
	    			System.out.println("No");
	    			return;
	    		} Character.isDigit(c[i])==false Character.isDigit(c[i]) Character.isDigit Character c[i] c i false {
	    			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 class Main {
 	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
	    int B = sc.nextInt();

	    String str = sc.next();
	    char[] c = str.toCharArray();
	    for(int i=0; i<A+B+1; i++){
	    	if(i==A){
	    		if(!(String.valueOf(c[i]).equals("-"))){
	    			System.out.println("No");
	    			return;
	    		}
	    	}else{
	    		if(Character.isDigit(c[i])==false){
	    			System.out.println("No");
	    			return;
	    		}
	    	}
	    }

	    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 str = sc.next();
	    char[] c = str.toCharArray();
	    for(int i=0; i<A+B+1; i++){
	    	if(i==A){
	    		if(!(String.valueOf(c[i]).equals("-"))){
	    			System.out.println("No");
	    			return;
	    		}
	    	}else{
	    		if(Character.isDigit(c[i])==false){
	    			System.out.println("No");
	    			return;
	    		}
	    	}
	    }

	    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 str = sc.next();
	    char[] c = str.toCharArray();
	    for(int i=0; i<A+B+1; i++){
	    	if(i==A){
	    		if(!(String.valueOf(c[i]).equals("-"))){
	    			System.out.println("No");
	    			return;
	    		}
	    	}else{
	    		if(Character.isDigit(c[i])==false){
	    			System.out.println("No");
	    			return;
	    		}
	    	}
	    }

	    System.out.println("Yes");
    }
}