import java.io.*;
import java.util.*;


public class Main {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int a = sc.nextInt();
		int b = sc.nextInt();
		char[] s = sc.next().toCharArray();

		int n = s.length;

		if (n == a + b + 1) {
			boolean flag = true;
			for (int i = 0; i < n; i++) {
				if (i < a) {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} else if (i == a) {
					if (s[i] != '-') {
						flag = false;
					}
				} else {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				}
			}

			if (flag) {
				pr.println("Yes");
				return;
			}
		}

		pr.println("No");
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int a = sc.nextInt();
		int b = sc.nextInt();
		char[] s = sc.next().toCharArray();

		int n = s.length;

		if (n == a + b + 1) {
			boolean flag = true;
			for (int i = 0; i < n; i++) {
				if (i < a) {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} else if (i == a) {
					if (s[i] != '-') {
						flag = false;
					}
				} else {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				}
			}

			if (flag) {
				pr.println("Yes");
				return;
			}
		}

		pr.println("No");
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
} Main private static Scanner sc; sc private static Printer pr; pr private static void solve() {
		int a = sc.nextInt();
		int b = sc.nextInt();
		char[] s = sc.next().toCharArray();

		int n = s.length;

		if (n == a + b + 1) {
			boolean flag = true;
			for (int i = 0; i < n; i++) {
				if (i < a) {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} else if (i == a) {
					if (s[i] != '-') {
						flag = false;
					}
				} else {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				}
			}

			if (flag) {
				pr.println("Yes");
				return;
			}
		}

		pr.println("No");
	} solve {
		int a = sc.nextInt();
		int b = sc.nextInt();
		char[] s = sc.next().toCharArray();

		int n = s.length;

		if (n == a + b + 1) {
			boolean flag = true;
			for (int i = 0; i < n; i++) {
				if (i < a) {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} else if (i == a) {
					if (s[i] != '-') {
						flag = false;
					}
				} else {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				}
			}

			if (flag) {
				pr.println("Yes");
				return;
			}
		}

		pr.println("No");
	} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc char[] s = sc.next().toCharArray(); s sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int n = s.length; n s.length s s.length if (n == a + b + 1) {
			boolean flag = true;
			for (int i = 0; i < n; i++) {
				if (i < a) {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} else if (i == a) {
					if (s[i] != '-') {
						flag = false;
					}
				} else {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				}
			}

			if (flag) {
				pr.println("Yes");
				return;
			}
		} n == a + b + 1 n a + b + 1 a + b + 1 a b 1 {
			boolean flag = true;
			for (int i = 0; i < n; i++) {
				if (i < a) {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} else if (i == a) {
					if (s[i] != '-') {
						flag = false;
					}
				} else {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				}
			}

			if (flag) {
				pr.println("Yes");
				return;
			}
		} boolean flag = true; flag true for (int i = 0; i < n; i++) {
				if (i < a) {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} else if (i == a) {
					if (s[i] != '-') {
						flag = false;
					}
				} else {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				}
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				if (i < a) {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} else if (i == a) {
					if (s[i] != '-') {
						flag = false;
					}
				} else {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				}
			} {
				if (i < a) {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} else if (i == a) {
					if (s[i] != '-') {
						flag = false;
					}
				} else {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				}
			} if (i < a) {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} else if (i == a) {
					if (s[i] != '-') {
						flag = false;
					}
				} else {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} i < a i a {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} if (s[i] < '0' || s[i] > '9') {
						flag = false;
					} s[i] < '0' || s[i] > '9' s[i] < '0' s[i] s i '0' s[i] > '9' s[i] s i '9' {
						flag = false;
					} flag = false flag false if (i == a) {
					if (s[i] != '-') {
						flag = false;
					}
				} else {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} i == a i a {
					if (s[i] != '-') {
						flag = false;
					}
				} if (s[i] != '-') {
						flag = false;
					} s[i] != '-' s[i] s i '-' {
						flag = false;
					} flag = false flag false {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} if (s[i] < '0' || s[i] > '9') {
						flag = false;
					} s[i] < '0' || s[i] > '9' s[i] < '0' s[i] s i '0' s[i] > '9' s[i] s i '9' {
						flag = false;
					} flag = false flag false if (flag) {
				pr.println("Yes");
				return;
			} flag {
				pr.println("Yes");
				return;
			} pr.println("Yes") pr.println pr "Yes" return; pr.println("No") pr.println pr "No" // ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	} main {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	} sc = new Scanner(System.in) sc new Scanner(System.in) pr = new Printer(System.out) pr new Printer(System.out) solve() solve pr.close() pr.close pr sc.close() sc.close sc String[] args args private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	} Printer Printer(PrintStream out) {
			super(out);
		} Printer {
			super(out);
		} super(out) super out PrintStream out out PrintWriter public class Main {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int a = sc.nextInt();
		int b = sc.nextInt();
		char[] s = sc.next().toCharArray();

		int n = s.length;

		if (n == a + b + 1) {
			boolean flag = true;
			for (int i = 0; i < n; i++) {
				if (i < a) {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} else if (i == a) {
					if (s[i] != '-') {
						flag = false;
					}
				} else {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				}
			}

			if (flag) {
				pr.println("Yes");
				return;
			}
		}

		pr.println("No");
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
} public class Main {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int a = sc.nextInt();
		int b = sc.nextInt();
		char[] s = sc.next().toCharArray();

		int n = s.length;

		if (n == a + b + 1) {
			boolean flag = true;
			for (int i = 0; i < n; i++) {
				if (i < a) {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} else if (i == a) {
					if (s[i] != '-') {
						flag = false;
					}
				} else {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				}
			}

			if (flag) {
				pr.println("Yes");
				return;
			}
		}

		pr.println("No");
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
} Main
import java.io.*;
import java.util.*;


public class Main {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int a = sc.nextInt();
		int b = sc.nextInt();
		char[] s = sc.next().toCharArray();

		int n = s.length;

		if (n == a + b + 1) {
			boolean flag = true;
			for (int i = 0; i < n; i++) {
				if (i < a) {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				} else if (i == a) {
					if (s[i] != '-') {
						flag = false;
					}
				} else {
					if (s[i] < '0' || s[i] > '9') {
						flag = false;
					}
				}
			}

			if (flag) {
				pr.println("Yes");
				return;
			}
		}

		pr.println("No");
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
