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 N = sc.next();
		int length = N.length();
		for (int i = 0; i < length; i++) {
			char c = N.charAt(i);
			if (i == A) {
				if (c != '-') {
					System.out.println("No"); 
					return;
				}
			} else {
				if (c < '0' || c > '9') {
					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 N = sc.next();
		int length = N.length();
		for (int i = 0; i < length; i++) {
			char c = N.charAt(i);
			if (i == A) {
				if (c != '-') {
					System.out.println("No"); 
					return;
				}
			} else {
				if (c < '0' || c > '9') {
					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 N = sc.next();
		int length = N.length();
		for (int i = 0; i < length; i++) {
			char c = N.charAt(i);
			if (i == A) {
				if (c != '-') {
					System.out.println("No"); 
					return;
				}
			} else {
				if (c < '0' || c > '9') {
					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 N = sc.next();
		int length = N.length();
		for (int i = 0; i < length; i++) {
			char c = N.charAt(i);
			if (i == A) {
				if (c != '-') {
					System.out.println("No"); 
					return;
				}
			} else {
				if (c < '0' || c > '9') {
					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 N = sc.next(); N sc.next() sc.next sc int length = N.length(); length N.length() N.length N for (int i = 0; i < length; i++) {
			char c = N.charAt(i);
			if (i == A) {
				if (c != '-') {
					System.out.println("No"); 
					return;
				}
			} else {
				if (c < '0' || c > '9') {
					System.out.println("No"); 
					return;
				}
			}
		} int i = 0; int i = 0; i 0 i < length i length i++ i++ i {
			char c = N.charAt(i);
			if (i == A) {
				if (c != '-') {
					System.out.println("No"); 
					return;
				}
			} else {
				if (c < '0' || c > '9') {
					System.out.println("No"); 
					return;
				}
			}
		} {
			char c = N.charAt(i);
			if (i == A) {
				if (c != '-') {
					System.out.println("No"); 
					return;
				}
			} else {
				if (c < '0' || c > '9') {
					System.out.println("No"); 
					return;
				}
			}
		} char c = N.charAt(i); c N.charAt(i) N.charAt N i if (i == A) {
				if (c != '-') {
					System.out.println("No"); 
					return;
				}
			} else {
				if (c < '0' || c > '9') {
					System.out.println("No"); 
					return;
				}
			} i == A i A {
				if (c != '-') {
					System.out.println("No"); 
					return;
				}
			} if (c != '-') {
					System.out.println("No"); 
					return;
				} c != '-' c '-' {
					System.out.println("No"); 
					return;
				} System.out.println("No") System.out.println System.out System System.out "No" return; {
				if (c < '0' || c > '9') {
					System.out.println("No"); 
					return;
				}
			} if (c < '0' || c > '9') {
					System.out.println("No"); 
					return;
				} c < '0' || c > '9' c < '0' c '0' c > '9' c '9' {
					System.out.println("No"); 
					return;
				} System.out.println("No") System.out.println System.out System System.out "No" return; 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 N = sc.next();
		int length = N.length();
		for (int i = 0; i < length; i++) {
			char c = N.charAt(i);
			if (i == A) {
				if (c != '-') {
					System.out.println("No"); 
					return;
				}
			} else {
				if (c < '0' || c > '9') {
					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 N = sc.next();
		int length = N.length();
		for (int i = 0; i < length; i++) {
			char c = N.charAt(i);
			if (i == A) {
				if (c != '-') {
					System.out.println("No"); 
					return;
				}
			} else {
				if (c < '0' || c > '9') {
					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 N = sc.next();
		int length = N.length();
		for (int i = 0; i < length; i++) {
			char c = N.charAt(i);
			if (i == A) {
				if (c != '-') {
					System.out.println("No"); 
					return;
				}
			} else {
				if (c < '0' || c > '9') {
					System.out.println("No"); 
					return;
				}
			}
		}
		System.out.println("Yes"); 
	}
}