import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a =sc.nextInt(),b=sc.nextInt();
		String str =sc.next();
		int judge=0;

		for(int i=0; i<(a+b+1); i++) {
			String s=str.substring(i,i+1);
			if(i==a) {
				if(s.equals("-")) {
					judge+=1;
				}
			}else {
				if(s.matches("[0-9]")) {
					judge+=1;
				}
			}
		}
		if(judge==(a+b+1)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a =sc.nextInt(),b=sc.nextInt();
		String str =sc.next();
		int judge=0;

		for(int i=0; i<(a+b+1); i++) {
			String s=str.substring(i,i+1);
			if(i==a) {
				if(s.equals("-")) {
					judge+=1;
				}
			}else {
				if(s.matches("[0-9]")) {
					judge+=1;
				}
			}
		}
		if(judge==(a+b+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(),b=sc.nextInt();
		String str =sc.next();
		int judge=0;

		for(int i=0; i<(a+b+1); i++) {
			String s=str.substring(i,i+1);
			if(i==a) {
				if(s.equals("-")) {
					judge+=1;
				}
			}else {
				if(s.matches("[0-9]")) {
					judge+=1;
				}
			}
		}
		if(judge==(a+b+1)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int a =sc.nextInt(),b=sc.nextInt();
		String str =sc.next();
		int judge=0;

		for(int i=0; i<(a+b+1); i++) {
			String s=str.substring(i,i+1);
			if(i==a) {
				if(s.equals("-")) {
					judge+=1;
				}
			}else {
				if(s.matches("[0-9]")) {
					judge+=1;
				}
			}
		}
		if(judge==(a+b+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 b=sc.nextInt(); b sc.nextInt() sc.nextInt sc String str =sc.next(); str sc.next() sc.next sc int judge=0; judge 0 for(int i=0; i<(a+b+1); i++) {
			String s=str.substring(i,i+1);
			if(i==a) {
				if(s.equals("-")) {
					judge+=1;
				}
			}else {
				if(s.matches("[0-9]")) {
					judge+=1;
				}
			}
		} 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 {
			String s=str.substring(i,i+1);
			if(i==a) {
				if(s.equals("-")) {
					judge+=1;
				}
			}else {
				if(s.matches("[0-9]")) {
					judge+=1;
				}
			}
		} {
			String s=str.substring(i,i+1);
			if(i==a) {
				if(s.equals("-")) {
					judge+=1;
				}
			}else {
				if(s.matches("[0-9]")) {
					judge+=1;
				}
			}
		} String s=str.substring(i,i+1); s str.substring(i,i+1) str.substring str i i+1 i 1 if(i==a) {
				if(s.equals("-")) {
					judge+=1;
				}
			}else {
				if(s.matches("[0-9]")) {
					judge+=1;
				}
			} i==a i a {
				if(s.equals("-")) {
					judge+=1;
				}
			} if(s.equals("-")) {
					judge+=1;
				} s.equals("-") s.equals s "-" {
					judge+=1;
				} judge+=1 judge 1 {
				if(s.matches("[0-9]")) {
					judge+=1;
				}
			} if(s.matches("[0-9]")) {
					judge+=1;
				} s.matches("[0-9]") s.matches s "[0-9]" {
					judge+=1;
				} judge+=1 judge 1 if(judge==(a+b+1)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} judge==(a+b+1) judge (a+b+1) a+b+1 a b 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(),b=sc.nextInt();
		String str =sc.next();
		int judge=0;

		for(int i=0; i<(a+b+1); i++) {
			String s=str.substring(i,i+1);
			if(i==a) {
				if(s.equals("-")) {
					judge+=1;
				}
			}else {
				if(s.matches("[0-9]")) {
					judge+=1;
				}
			}
		}
		if(judge==(a+b+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(),b=sc.nextInt();
		String str =sc.next();
		int judge=0;

		for(int i=0; i<(a+b+1); i++) {
			String s=str.substring(i,i+1);
			if(i==a) {
				if(s.equals("-")) {
					judge+=1;
				}
			}else {
				if(s.matches("[0-9]")) {
					judge+=1;
				}
			}
		}
		if(judge==(a+b+1)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a =sc.nextInt(),b=sc.nextInt();
		String str =sc.next();
		int judge=0;

		for(int i=0; i<(a+b+1); i++) {
			String s=str.substring(i,i+1);
			if(i==a) {
				if(s.equals("-")) {
					judge+=1;
				}
			}else {
				if(s.matches("[0-9]")) {
					judge+=1;
				}
			}
		}
		if(judge==(a+b+1)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
}