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(), ans = "Yes";

		for (int i = 0; i < s.length(); i++) {
			if (i == (a)) {
				if (!s.substring(i, i + 1).equals("-")) {
					ans = "No";
					break;
				}
			} else {
				if (!s.substring(i, i + 1).matches("1|2|3|4|5|6|7|8|9|0")) {
					ans = "No";
					break;
				}
			}
		}
		System.out.println(ans);

		sc.close();
	}
} 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(), ans = "Yes";

		for (int i = 0; i < s.length(); i++) {
			if (i == (a)) {
				if (!s.substring(i, i + 1).equals("-")) {
					ans = "No";
					break;
				}
			} else {
				if (!s.substring(i, i + 1).matches("1|2|3|4|5|6|7|8|9|0")) {
					ans = "No";
					break;
				}
			}
		}
		System.out.println(ans);

		sc.close();
	}
} 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(), ans = "Yes";

		for (int i = 0; i < s.length(); i++) {
			if (i == (a)) {
				if (!s.substring(i, i + 1).equals("-")) {
					ans = "No";
					break;
				}
			} else {
				if (!s.substring(i, i + 1).matches("1|2|3|4|5|6|7|8|9|0")) {
					ans = "No";
					break;
				}
			}
		}
		System.out.println(ans);

		sc.close();
	} main {
		Scanner sc = new Scanner((System.in));
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = sc.next(), ans = "Yes";

		for (int i = 0; i < s.length(); i++) {
			if (i == (a)) {
				if (!s.substring(i, i + 1).equals("-")) {
					ans = "No";
					break;
				}
			} else {
				if (!s.substring(i, i + 1).matches("1|2|3|4|5|6|7|8|9|0")) {
					ans = "No";
					break;
				}
			}
		}
		System.out.println(ans);

		sc.close();
	} 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() s sc.next() sc.next sc ans = "Yes"; ans "Yes" for (int i = 0; i < s.length(); i++) {
			if (i == (a)) {
				if (!s.substring(i, i + 1).equals("-")) {
					ans = "No";
					break;
				}
			} else {
				if (!s.substring(i, i + 1).matches("1|2|3|4|5|6|7|8|9|0")) {
					ans = "No";
					break;
				}
			}
		} int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
			if (i == (a)) {
				if (!s.substring(i, i + 1).equals("-")) {
					ans = "No";
					break;
				}
			} else {
				if (!s.substring(i, i + 1).matches("1|2|3|4|5|6|7|8|9|0")) {
					ans = "No";
					break;
				}
			}
		} {
			if (i == (a)) {
				if (!s.substring(i, i + 1).equals("-")) {
					ans = "No";
					break;
				}
			} else {
				if (!s.substring(i, i + 1).matches("1|2|3|4|5|6|7|8|9|0")) {
					ans = "No";
					break;
				}
			}
		} if (i == (a)) {
				if (!s.substring(i, i + 1).equals("-")) {
					ans = "No";
					break;
				}
			} else {
				if (!s.substring(i, i + 1).matches("1|2|3|4|5|6|7|8|9|0")) {
					ans = "No";
					break;
				}
			} i == (a) i (a) {
				if (!s.substring(i, i + 1).equals("-")) {
					ans = "No";
					break;
				}
			} if (!s.substring(i, i + 1).equals("-")) {
					ans = "No";
					break;
				} !s.substring(i, i + 1).equals("-") s.substring(i, i + 1).equals("-") s.substring(i, i + 1).equals s.substring(i, i + 1) s.substring s i i + 1 i 1 "-" {
					ans = "No";
					break;
				} ans = "No" ans "No" break; {
				if (!s.substring(i, i + 1).matches("1|2|3|4|5|6|7|8|9|0")) {
					ans = "No";
					break;
				}
			} if (!s.substring(i, i + 1).matches("1|2|3|4|5|6|7|8|9|0")) {
					ans = "No";
					break;
				} !s.substring(i, i + 1).matches("1|2|3|4|5|6|7|8|9|0") s.substring(i, i + 1).matches("1|2|3|4|5|6|7|8|9|0") s.substring(i, i + 1).matches s.substring(i, i + 1) s.substring s i i + 1 i 1 "1|2|3|4|5|6|7|8|9|0" {
					ans = "No";
					break;
				} ans = "No" ans "No" break; System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc 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(), ans = "Yes";

		for (int i = 0; i < s.length(); i++) {
			if (i == (a)) {
				if (!s.substring(i, i + 1).equals("-")) {
					ans = "No";
					break;
				}
			} else {
				if (!s.substring(i, i + 1).matches("1|2|3|4|5|6|7|8|9|0")) {
					ans = "No";
					break;
				}
			}
		}
		System.out.println(ans);

		sc.close();
	}
} 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(), ans = "Yes";

		for (int i = 0; i < s.length(); i++) {
			if (i == (a)) {
				if (!s.substring(i, i + 1).equals("-")) {
					ans = "No";
					break;
				}
			} else {
				if (!s.substring(i, i + 1).matches("1|2|3|4|5|6|7|8|9|0")) {
					ans = "No";
					break;
				}
			}
		}
		System.out.println(ans);

		sc.close();
	}
} 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(), ans = "Yes";

		for (int i = 0; i < s.length(); i++) {
			if (i == (a)) {
				if (!s.substring(i, i + 1).equals("-")) {
					ans = "No";
					break;
				}
			} else {
				if (!s.substring(i, i + 1).matches("1|2|3|4|5|6|7|8|9|0")) {
					ans = "No";
					break;
				}
			}
		}
		System.out.println(ans);

		sc.close();
	}
}