import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		String[] input = sc.next().split("");
		for (int i = 0; i < input.length; i++) {
			if (i == A) {
				if (!input[i].equals("-")) {
					System.out.println("No");
					System.exit(0);
				} else {
					continue;
				}
			}
			try {
				Integer.parseInt(input[i]);
			} catch (Exception e) {
				System.out.println("No");
				System.exit(0);
			}
		}
		System.out.println("Yes");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		String[] input = sc.next().split("");
		for (int i = 0; i < input.length; i++) {
			if (i == A) {
				if (!input[i].equals("-")) {
					System.out.println("No");
					System.exit(0);
				} else {
					continue;
				}
			}
			try {
				Integer.parseInt(input[i]);
			} catch (Exception e) {
				System.out.println("No");
				System.exit(0);
			}
		}
		System.out.println("Yes");
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		String[] input = sc.next().split("");
		for (int i = 0; i < input.length; i++) {
			if (i == A) {
				if (!input[i].equals("-")) {
					System.out.println("No");
					System.exit(0);
				} else {
					continue;
				}
			}
			try {
				Integer.parseInt(input[i]);
			} catch (Exception 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[] input = sc.next().split("");
		for (int i = 0; i < input.length; i++) {
			if (i == A) {
				if (!input[i].equals("-")) {
					System.out.println("No");
					System.exit(0);
				} else {
					continue;
				}
			}
			try {
				Integer.parseInt(input[i]);
			} catch (Exception 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[] input = sc.next().split(""); input sc.next().split("") sc.next().split sc.next() sc.next sc "" for (int i = 0; i < input.length; i++) {
			if (i == A) {
				if (!input[i].equals("-")) {
					System.out.println("No");
					System.exit(0);
				} else {
					continue;
				}
			}
			try {
				Integer.parseInt(input[i]);
			} catch (Exception e) {
				System.out.println("No");
				System.exit(0);
			}
		} int i = 0; int i = 0; i 0 i < input.length i input.length input input.length i++ i++ i {
			if (i == A) {
				if (!input[i].equals("-")) {
					System.out.println("No");
					System.exit(0);
				} else {
					continue;
				}
			}
			try {
				Integer.parseInt(input[i]);
			} catch (Exception e) {
				System.out.println("No");
				System.exit(0);
			}
		} {
			if (i == A) {
				if (!input[i].equals("-")) {
					System.out.println("No");
					System.exit(0);
				} else {
					continue;
				}
			}
			try {
				Integer.parseInt(input[i]);
			} catch (Exception e) {
				System.out.println("No");
				System.exit(0);
			}
		} if (i == A) {
				if (!input[i].equals("-")) {
					System.out.println("No");
					System.exit(0);
				} else {
					continue;
				}
			} i == A i A {
				if (!input[i].equals("-")) {
					System.out.println("No");
					System.exit(0);
				} else {
					continue;
				}
			} if (!input[i].equals("-")) {
					System.out.println("No");
					System.exit(0);
				} else {
					continue;
				} !input[i].equals("-") input[i].equals("-") input[i].equals input[i] input i "-" {
					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 {
					continue;
				} continue; try {
				Integer.parseInt(input[i]);
			} catch (Exception e) {
				System.out.println("No");
				System.exit(0);
			} catch (Exception e) {
				System.out.println("No");
				System.exit(0);
			} Exception 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(input[i]);
			} Integer.parseInt(input[i]) Integer.parseInt Integer input[i] input 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) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		String[] input = sc.next().split("");
		for (int i = 0; i < input.length; i++) {
			if (i == A) {
				if (!input[i].equals("-")) {
					System.out.println("No");
					System.exit(0);
				} else {
					continue;
				}
			}
			try {
				Integer.parseInt(input[i]);
			} catch (Exception e) {
				System.out.println("No");
				System.exit(0);
			}
		}
		System.out.println("Yes");
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		String[] input = sc.next().split("");
		for (int i = 0; i < input.length; i++) {
			if (i == A) {
				if (!input[i].equals("-")) {
					System.out.println("No");
					System.exit(0);
				} else {
					continue;
				}
			}
			try {
				Integer.parseInt(input[i]);
			} catch (Exception e) {
				System.out.println("No");
				System.exit(0);
			}
		}
		System.out.println("Yes");
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		String[] input = sc.next().split("");
		for (int i = 0; i < input.length; i++) {
			if (i == A) {
				if (!input[i].equals("-")) {
					System.out.println("No");
					System.exit(0);
				} else {
					continue;
				}
			}
			try {
				Integer.parseInt(input[i]);
			} catch (Exception e) {
				System.out.println("No");
				System.exit(0);
			}
		}
		System.out.println("Yes");
	}
}
