import java.util.Scanner;

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().split("");
		if(s.length != a+ b +1) {
			System.out.println("No");
			return;
		}
		for(int i = 0;i < a + b + 1;i++) {
			if(i == a) {
				if(!s[i].equals("-")) {
					System.out.println("No");
					return;

			}}else {
				try {
					Integer.parseInt(s[i]);
				}catch(Exception e) {
					System.out.println("No");
					return;
				}
			}
		}
		System.out.println("Yes");
	}

} 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();
		int b = sc.nextInt();
		String[] s = sc.next().split("");
		if(s.length != a+ b +1) {
			System.out.println("No");
			return;
		}
		for(int i = 0;i < a + b + 1;i++) {
			if(i == a) {
				if(!s[i].equals("-")) {
					System.out.println("No");
					return;

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

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

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

			}}else {
				try {
					Integer.parseInt(s[i]);
				}catch(Exception e) {
					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(!s[i].equals("-")) {
					System.out.println("No");
					return;

			}}else {
				try {
					Integer.parseInt(s[i]);
				}catch(Exception e) {
					System.out.println("No");
					return;
				}
			}
		} {
			if(i == a) {
				if(!s[i].equals("-")) {
					System.out.println("No");
					return;

			}}else {
				try {
					Integer.parseInt(s[i]);
				}catch(Exception e) {
					System.out.println("No");
					return;
				}
			}
		} if(i == a) {
				if(!s[i].equals("-")) {
					System.out.println("No");
					return;

			}}else {
				try {
					Integer.parseInt(s[i]);
				}catch(Exception e) {
					System.out.println("No");
					return;
				}
			} i == a i a {
				if(!s[i].equals("-")) {
					System.out.println("No");
					return;

			}} if(!s[i].equals("-")) {
					System.out.println("No");
					return;

			} !s[i].equals("-") s[i].equals("-") s[i].equals s[i] s i "-" {
					System.out.println("No");
					return;

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

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

			}}else {
				try {
					Integer.parseInt(s[i]);
				}catch(Exception e) {
					System.out.println("No");
					return;
				}
			}
		}
		System.out.println("Yes");
	}

} Main
import java.util.Scanner;

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().split("");
		if(s.length != a+ b +1) {
			System.out.println("No");
			return;
		}
		for(int i = 0;i < a + b + 1;i++) {
			if(i == a) {
				if(!s[i].equals("-")) {
					System.out.println("No");
					return;

			}}else {
				try {
					Integer.parseInt(s[i]);
				}catch(Exception e) {
					System.out.println("No");
					return;
				}
			}
		}
		System.out.println("Yes");
	}

}