import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	Main m = new Main();
	m.answer();
    }

    private Scanner scan = new Scanner(System.in);
    private int A;
    private int B;
    private String S;

    public Main() {
	A = Integer.parseInt(scan.next());
	B = Integer.parseInt(scan.next());
	S = scan.next();

	scan.close();
    }

    public final void answer() {

	String ans = "Yes";

	for (int i = 0; i < A+B+1; i++) {

	    if(i == A) {
		if(S.charAt(i) != '-') {
		    ans = "No";
		    break;
		}
		
	    } else {
		int d = S.charAt(i) - '0';
		if(d < 0 || d > 9) {
		    ans = "No";
		    break;
		}
	    }
	}

	System.out.println(ans);
	
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
	Main m = new Main();
	m.answer();
    }

    private Scanner scan = new Scanner(System.in);
    private int A;
    private int B;
    private String S;

    public Main() {
	A = Integer.parseInt(scan.next());
	B = Integer.parseInt(scan.next());
	S = scan.next();

	scan.close();
    }

    public final void answer() {

	String ans = "Yes";

	for (int i = 0; i < A+B+1; i++) {

	    if(i == A) {
		if(S.charAt(i) != '-') {
		    ans = "No";
		    break;
		}
		
	    } else {
		int d = S.charAt(i) - '0';
		if(d < 0 || d > 9) {
		    ans = "No";
		    break;
		}
	    }
	}

	System.out.println(ans);
	
    }
} Main private Scanner scan = new Scanner(System.in); scan new Scanner(System.in) private int A; A private int B; B private String S; S public static void main(String[] args) {
	Main m = new Main();
	m.answer();
    } main {
	Main m = new Main();
	m.answer();
    } Main m = new Main(); m new Main() m.answer() m.answer m String[] args args public Main() {
	A = Integer.parseInt(scan.next());
	B = Integer.parseInt(scan.next());
	S = scan.next();

	scan.close();
    } Main {
	A = Integer.parseInt(scan.next());
	B = Integer.parseInt(scan.next());
	S = scan.next();

	scan.close();
    } A = Integer.parseInt(scan.next()) A Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan B = Integer.parseInt(scan.next()) B Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan S = scan.next() S scan.next() scan.next scan scan.close() scan.close scan public final void answer() {

	String ans = "Yes";

	for (int i = 0; i < A+B+1; i++) {

	    if(i == A) {
		if(S.charAt(i) != '-') {
		    ans = "No";
		    break;
		}
		
	    } else {
		int d = S.charAt(i) - '0';
		if(d < 0 || d > 9) {
		    ans = "No";
		    break;
		}
	    }
	}

	System.out.println(ans);
	
    } answer {

	String ans = "Yes";

	for (int i = 0; i < A+B+1; i++) {

	    if(i == A) {
		if(S.charAt(i) != '-') {
		    ans = "No";
		    break;
		}
		
	    } else {
		int d = S.charAt(i) - '0';
		if(d < 0 || d > 9) {
		    ans = "No";
		    break;
		}
	    }
	}

	System.out.println(ans);
	
    } String ans = "Yes"; ans "Yes" for (int i = 0; i < A+B+1; i++) {

	    if(i == A) {
		if(S.charAt(i) != '-') {
		    ans = "No";
		    break;
		}
		
	    } else {
		int d = S.charAt(i) - '0';
		if(d < 0 || d > 9) {
		    ans = "No";
		    break;
		}
	    }
	} 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(S.charAt(i) != '-') {
		    ans = "No";
		    break;
		}
		
	    } else {
		int d = S.charAt(i) - '0';
		if(d < 0 || d > 9) {
		    ans = "No";
		    break;
		}
	    }
	} {

	    if(i == A) {
		if(S.charAt(i) != '-') {
		    ans = "No";
		    break;
		}
		
	    } else {
		int d = S.charAt(i) - '0';
		if(d < 0 || d > 9) {
		    ans = "No";
		    break;
		}
	    }
	} if(i == A) {
		if(S.charAt(i) != '-') {
		    ans = "No";
		    break;
		}
		
	    } else {
		int d = S.charAt(i) - '0';
		if(d < 0 || d > 9) {
		    ans = "No";
		    break;
		}
	    } i == A i A {
		if(S.charAt(i) != '-') {
		    ans = "No";
		    break;
		}
		
	    } if(S.charAt(i) != '-') {
		    ans = "No";
		    break;
		} S.charAt(i) != '-' S.charAt(i) S.charAt S i '-' {
		    ans = "No";
		    break;
		} ans = "No" ans "No" break; {
		int d = S.charAt(i) - '0';
		if(d < 0 || d > 9) {
		    ans = "No";
		    break;
		}
	    } int d = S.charAt(i) - '0'; d S.charAt(i) - '0' S.charAt(i) S.charAt S i '0' if(d < 0 || d > 9) {
		    ans = "No";
		    break;
		} d < 0 || d > 9 d < 0 d 0 d > 9 d 9 {
		    ans = "No";
		    break;
		} ans = "No" ans "No" break; System.out.println(ans) System.out.println System.out System System.out ans public class Main {

    public static void main(String[] args) {
	Main m = new Main();
	m.answer();
    }

    private Scanner scan = new Scanner(System.in);
    private int A;
    private int B;
    private String S;

    public Main() {
	A = Integer.parseInt(scan.next());
	B = Integer.parseInt(scan.next());
	S = scan.next();

	scan.close();
    }

    public final void answer() {

	String ans = "Yes";

	for (int i = 0; i < A+B+1; i++) {

	    if(i == A) {
		if(S.charAt(i) != '-') {
		    ans = "No";
		    break;
		}
		
	    } else {
		int d = S.charAt(i) - '0';
		if(d < 0 || d > 9) {
		    ans = "No";
		    break;
		}
	    }
	}

	System.out.println(ans);
	
    }
} public class Main {

    public static void main(String[] args) {
	Main m = new Main();
	m.answer();
    }

    private Scanner scan = new Scanner(System.in);
    private int A;
    private int B;
    private String S;

    public Main() {
	A = Integer.parseInt(scan.next());
	B = Integer.parseInt(scan.next());
	S = scan.next();

	scan.close();
    }

    public final void answer() {

	String ans = "Yes";

	for (int i = 0; i < A+B+1; i++) {

	    if(i == A) {
		if(S.charAt(i) != '-') {
		    ans = "No";
		    break;
		}
		
	    } else {
		int d = S.charAt(i) - '0';
		if(d < 0 || d > 9) {
		    ans = "No";
		    break;
		}
	    }
	}

	System.out.println(ans);
	
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	Main m = new Main();
	m.answer();
    }

    private Scanner scan = new Scanner(System.in);
    private int A;
    private int B;
    private String S;

    public Main() {
	A = Integer.parseInt(scan.next());
	B = Integer.parseInt(scan.next());
	S = scan.next();

	scan.close();
    }

    public final void answer() {

	String ans = "Yes";

	for (int i = 0; i < A+B+1; i++) {

	    if(i == A) {
		if(S.charAt(i) != '-') {
		    ans = "No";
		    break;
		}
		
	    } else {
		int d = S.charAt(i) - '0';
		if(d < 0 || d > 9) {
		    ans = "No";
		    break;
		}
	    }
	}

	System.out.println(ans);
	
    }
}
